I'm locked in a regex problem. I must put "<strong>" and "</strong>" tags at the sides of some String, along a larger String. For example, if I have:
"This is a test, and test word appears two times"
And the String selected is "test", it will remains:
"This is a <_strong>test<_/strong>, and <_strong>test<_/strong> word appears two times"
At first, I think in use regex functions combined with "ReplacedAll". The problem comes when there are <_strong> tags in the larger String, some like that:
"This is a test, and <_strong>test word<_/strong> appears two times"
It will remain something like that:
"This is a <_strong>test<_/strong>, and <_strong><_strong>test<_/strong> word<_/strong> appears two times"
The idea is for find a regular expression that modify the string "test" only if there isn't between <_strong> tags. But I'm not able for find it.