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/

Reply via email to