> It gets a little confusing with 4D because if you use QFree you don't
> specify them , but in 4D you do.
Surely you meant Active4D.. I can only wish 4D had native regex functions...
heck, I can even wish I could use regex to query the database, instead of just
the "@" wildcard :)
sincerely,m|a
"The only reason some people get lost in thought is
because it's unfamiliar territory." -- Paul Fix
----- Original Message ----
From: Brad Perkins <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Thursday, July 20, 2006 10:39:37 AM
Subject: Re: [Active4d-dev] regex help
The "/" pattern begin and end pattern markers are implementation
dependent. They basically say "this string is a regex pattern". My
experience is that in various languages you usually need them,
especially where those languages offer a regex match operator.
It gets a little confusing with 4D because if you use QFree you don't
specify them , but in 4D you do.
-- Brad Perkins
Mehboob Alam wrote:
> Nice, that worked.. did I miss something in
> understanding regex, or something in the Active4D
> manual? The regex pattern itself (for phone numbers) I
> got off a Google search hit.
>
>
> --- Clayton Donahue <[EMAIL PROTECTED]> wrote:
>
>
>> Hi Mehboob,
>>
>> Try putting forward slashes around your pattern like
>> this:
>>
>> $inPattern:="/^([(]?\d{3}[-)]\d{3}-\d{4})*$/"
>>
>> That clears it up on this end!
>>
>> - Clayton
>>
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Mehboob
>> Alam
>> Sent: Wednesday, July 19, 2006 6:50 PM
>> To: [EMAIL PROTECTED]
>> Subject: [Active4d-dev] regex help
>>
>> Could someone point out what I'm doing wrong here?
>>
>>
>> // phone regex: ^([(]?\d{3}[-)]\d{3}-\d{4})*$
>>
>> $inPattern:="^([(]?\d{3}[-)]\d{3}-\d{4})*$"
>> $inSubject:=[process]line3
>> if(regex match($inPattern; $inSubject))
>> writebold($inSubject)+"<BR>"
>> else
>> //
>> end if
>>
>> error message from Active4D
>>
>> if(regex match($inPattern; $inSubject))
>> Missing delimiter in search pattern.
>>
>>
>> sincerely,
>> m|a
>>
>>
>>
>> "The only reason some people get lost in thought is
>> because it's
>> unfamiliar territory." -- Paul Fix
>> _______________________________________________
>> Active4D-dev mailing list
>> [email protected]
>>
>>
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
>
>> Archives:
>>
>>
> http://mailman.aparajitaworld.com/archive/active4d-dev/
>
>> _______________________________________________
>> Active4D-dev mailing list
>> [email protected]
>>
>>
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
>
>> Archives:
>>
>>
> http://mailman.aparajitaworld.com/archive/active4d-dev/
>
>
>
> sincerely,
> m|a
>
>
>
> "The only reason some people get lost in thought is
> because it's unfamiliar territory." -- Paul Fix
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>
>
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/