--- In [email protected], Nathan <[EMAIL PROTECTED]> wrote:
> >The default behavior of match(g) is already this. Assuming \ is your
> >escape character:
> >
> >local matched
> >regex.match(?"string",?"pattern",?"\0","matched")
> >regex.matchg(?"string",?"pattern","\\0\n","matched")
> >
> >The last one stores the LF delimited matched results to the variable
> >matched.
> 
> Thanks, that worked. I was using
> regex.match(?"string",?"pattern","","matched")
> and it didn't work.

Bruce introduces a new, very intuitive, syntax which greatly
simplifies the regex job with the latest build 4.4.14.

Single Match:
matched = ?"string"[?"(?#1)pattern"]
or
matched = (?"string1"++?"string2")[?"(?#1)pattern"]
or
etc

Multiple Match (delimited by LF defaultly):
matched = ?"string"[?"pattern"]
or
matched = (?"string1"++?"string2")[?"pattern"]
or
etc

Sean






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to