RegEx question

Yves COPPE yvescoppe at skynet.be
Fri Apr 9 03:54:59 CDT 2004


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.
>
> That will get rid of matching strings with extra characters at the  
> start and end.
>


Sorry, but can you re-write the function for me

function CheckDate pDateToCheck
   return  
matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0 
-9][0-9][0-9][0-9])")
end CheckDate


thank you very much

> Dar Scott
>
>

Greetings.

Yves COPPE
yvescoppe at skynet.be



More information about the use-livecode mailing list