OT: Some help with Regular Expressions

Bob Sneidar bobs at twft.com
Thu Nov 4 18:35:23 EDT 2010

Okay this is going into my keepers file. Very useful. Wish the regex tuorials out there were explained this simply. 


On Nov 4, 2010, at 2:56 PM, Jim Ault wrote:

> Hints to help you
> (?i)  means case insensitive
> [a-z] means a single lower case alpha char
> [A-Z] means a single upper case alpha char
> [0-9] means a single digit
> (?i)^[a-z][0-9]\.[a-z][0-9][0-9][a-z][a-z]\.[0-9][0-9]$
> means
> upper or lower case for all matches
> \. means a literal period character
> ^ means a match must start at the beginning of a line
> $ means a match must stop at the line ending char
> thus the matching string must have the same alpha-numeric positions and be the same length,
> white space not allowed, nor commas, quotes, and other punctuation.
> RegEx used to be Greek to me, but then I discovered it does not even closely resemble Greek.
> On Nov 4, 2010, at 12:48 PM, Matthias Rebbe wrote:
>> Dear all,
>> i have to check for an value in the format  XX.YYYYY.ZZZ (e.g.  A1.B35AZ.001 or a1.b35az.001)
>> I have to check if the value is in the right format. I know i can do that with matchtext and a regular expression, but
>> i do not know enough to get the regular expression to work.
>> Is there anyone who might be able to help?
> Jim Ault
> Las Vegas
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

More information about the Use-livecode mailing list