RegEx question

Yves COPPE yvescoppe at skynet.be
Fri Apr 9 08:34:24 EDT 2004



Hi Dar,



Le 9 avr. 04, à 08:22, Dar Scott a écrit :

>
> On Friday, April 9, 2004, at 12:02 AM, Yves COPPE wrote:
>
>> Can someone help me to make it run fine ?
>
> Your regex will match a string that has a date in it someplace, that  
> is, anyplace.
>
> 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.
>
>



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


Can you give me the correct syntax please ?



Greetings.

Yves COPPE
yvescoppe at skynet.be


More information about the Use-livecode mailing list