in reply to Re: Double regex match not working correctly.
in thread Double regex match not working correctly.
Actually, the second one handled it exactly like I wanted. Thanks, I tried a variance of that but noticed I placed the parenthesis the wrong way that time also.
However, the first one didn't seem to work how I thought it would, not sure I think I copied it exactly how you had it, but it didn't work correctly for me. It gave me this...
string after first - bar there is a <B>foo bar</B> and a <B>bar foo</B> and also foo <B>foo</B>and bar
...but the second substitution you gave worked perfectly. Thanks for showing me the err of my ways.