I'm trying to change
<font .... bold..>text</font>
to
<b>text</b>
where ... is text that can be anything (except >)

I've tried
return_code = regex.replaceg(string, "<font.+bold.+>(.+)</font>",
"<b>\1</b>", "output")
and it doesn't seem to work. Any suggestions?

Also, for several replaces the usage seems to require
return_code = regex.replaceg(string, "find", "replace", "output")
string = output
return_code = regex.replaceg(string, "find", "replace", "output")
string = output
rather than
return_code = regex.replaceg(string, "find", "replace", "string")
return_code = regex.replaceg(string, "find2", "replace2", "string")
which is a bit neater.
Any reason why it's this verbose?
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. . .


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/
 



Reply via email to