regular expressions

  1. jessethebuilder

    Question Struggles with Regular Expressions

    I am writing an object to deal with state names. Sometimes I get the 2 letter abbreviation, and sometimes I get the full name. So I am trying to write an object that lets me deal with either. But I have a RegEx problem that I have been on for too long, and I'm stumped. Imports System.Text...
  2. VBobCat

    Question Testing number of digits with Regular Expressions

    I have to test a string that must match this pattern: any number of digits, a slash, and two or four digits, but not three (it is a year). So I'm using this boolean expression: System.Text.RegularExpressions.Regex.IsMatch(texto, "^\d+/\d{2,4}$") And Not...
  3. D

    Regex for case insensitive registry search

    Hi, I've recently learnt that Regex class maybe used to develop case insensitive searches. I have a registry search program that will return only the exact matches from the registry. I need to make it case insensitive. Can you guide me how to do that using regular expressions in vb.net 2005. Im...
Top Bottom