Link to home
Start Free TrialLog in
Avatar of tmajor99
tmajor99

asked on

Regex - Escaping "(" and match

I just need a regex to match exactly on "(TM)" and convert to "<TRADEM/>".  

 Combi2(TM)
  Test(tm)
   Tmike(Tm)

Expected Results:

Combi2<TRADEM/>
Test<TRADEM/>
 Tmike<TRADEM/>

Test
ASKER CERTIFIED SOLUTION
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bill Prew
Bill Prew

@tmajor99,
 
Great job by Terry.  And just for your future reference below is a link to a really great site to develop and test RegEx expressions online, very handy, and shows a break down of the expression and explanation.  Here's an example of this question tested there.



»bp