Stumped on Regular Expression in ReReplace
hi folks,
i'm new regular expressions , i'm stumped on 2 of them. have book on order amazon on this, can't wait 3 days arrive. appreciated!
1. need remove html tags string except ones, such <img> <a> etc. expression <cfset vresp = rereplace(vresp, "<[^>]*>", "", "all")> removes all, can't figure out how exclude <img>, <a>, etc. tags.
2. i'm trying figure out how remove repeated characters /n or /r or /f, leaving first occurance. i.e. how strip out white space between lines in html file.
thanks!
/russ
i'm new regular expressions , i'm stumped on 2 of them. have book on order amazon on this, can't wait 3 days arrive. appreciated!
1. need remove html tags string except ones, such <img> <a> etc. expression <cfset vresp = rereplace(vresp, "<[^>]*>", "", "all")> removes all, can't figure out how exclude <img>, <a>, etc. tags.
2. i'm trying figure out how remove repeated characters /n or /r or /f, leaving first occurance. i.e. how strip out white space between lines in html file.
thanks!
/russ
More discussions in ColdFusion
adobe
Comments
Post a Comment