PDA

View Full Version : Regular Expression with string exlusions


david7777
02-16-2005, 09:15 AM
I am trying to build a regular expression, but need help...


"<b>This</b> is some foobar text <b>bundled</b> up in a string..."


In the above text I want to find all occurances of "b", except where the text is "<b>This</b>" or "<b>bundled</b>".

So i dont want to find any B's (case insensative) in "<b>This</b>" or "<b>bundled</b>", but only in "foobar".

Any help would be great!