Hi, > I've tried > return_code = regex.replaceg(string, "<font.+bold.+>(.+)</font>", > "<b>\1</b>", "output") > and it doesn't seem to work. Any suggestions?
If \ is your escaping character (I think it's the default now), then you must use "<b>\\1</b>". PP will then turn \\ into \ just like it will turn, say, \" into ". > It would be even better if the syntax was: > stringout = regex.replaceg(stringin,"find","replace",options) > where options was stuff like caseless, greedy, etc. Much easier to read. . . rg (as well as mg, r1 and m1) work like this: regex.rg=(string,pattern,replace) I think that adding optional arguments for caseless and such would clutter the syntax unnecessarily and possibly introduce confusion as some services have more arguments than others. You can include options in the matching string though. If anyone else would also like this, please let it be known. 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/power-pro/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
