PDA

View Full Version : regular expressions


reubenb
10-12-2005, 07:16 AM
ok, so im new to this whole regular expression thing.

<[^>]*> removes all HTML tags

but say I DONT want to remove <br> or <br /> (xhtml) tags

i thought <(?!br)[^>]*> or <(?!br /)[^>]*> would work but it doesn't?

any ideas?

Bullschmidt
10-13-2005, 05:41 AM
Don't know if this might hopefully help at all:

Regular Expression Information
http://www.4guysfromrolla.com/webtech/RegularExpressions.shtml
Links.

Regular Expressions Messageboard
http://www.aspmessageboard.com/forum/regularExpressions.asp