RegEx question
Dar Scott
dsc at swcp.com
Sat Apr 10 02:58:31 EDT 2004
On Friday, April 9, 2004, at 06:34 AM, Yves COPPE wrote:
> function CheckDate pDateToCheck
> return
> matchText(pDateToCheck,"\A([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-
> 9][0-9][0-9][0-9])\z")
> end CheckDate
>
> doesn't give the good effect
This works for me with your original examples.
Might your data sometimes have spaces or LF at the start or end? The
regex will need to account for that.
Dar Scott
More information about the use-livecode
mailing list