RegEx question

Dar Scott dsc at swcp.com
Fri Apr 9 03:04:01 EDT 2004


On Friday, April 9, 2004, at 12:33 AM, Ken Ray wrote:

>> Put a \A at the start of the regex to match the start of the
>> string. Put a \z at the end of the regex to match the end of
>> the string.
>
> Interesting! I always used ^ for the beginning and $ for the end of a 
> string
> match; apparently both work...

Yes.  ^ and $ are simpler and might be recognized by more folks, but 
their meanings can be changed by modifiers.

Somehow, when first learning, I got into the habit of using \A and \z 
for strict start and end.

Dar Scott



More information about the use-livecode mailing list