--- In [email protected], Nathan <[EMAIL PROTECTED]> wrote > I would like to look for a match (not replace) in a string and put the > matched part of the string in a variable, rather than the replaced > string.
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. Sean ------------------------ Yahoo! Groups Sponsor --------------------~--> Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/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/
