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



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support