Matchtext
Yves COPPE
yvescoppe at skynet.be
Thu Jul 31 12:46:01 EDT 2003
Le jeudi, 31 juil 2003, à 18:58 Europe/Brussels, Alex Rice a écrit :
>
> On Thursday, July 31, 2003, at 10:39 AM, Dar Scott wrote:
>
>>
>> On Thursday, July 31, 2003, at 07:18 AM, Yves COPPE wrote:
>>
>>> if
>>> matchtext(theLine,"(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-
>>> 9][0-9])",theDay,TheMonth,TheYear) is true then
>>
>> Try this:
>> "([ 0][1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9])"
>
> Here is one that handles different lengths for the digits, but doesn't
> check the ranges of the day and month numbers. But that could be done
> in transcript.
>
> put matchText(tLine, "(\d{1,2})/(\d{1,2})/(\d{2,4})", tDay, tMo, tYr)
>
>
Thank you Dar an d Alex...
Greetings.
Yves COPPE
yvescoppe at skynet.be
More information about the use-livecode
mailing list