find and modify parts of string

  • Thread starter Thread starter essamce
  • Start date Start date
E

essamce

Guest
hi,

i have some string text1:

string text1 = "this is original text contains mathch1 and match2 and maybe contain match3 and so on ...";

and based on some regex myPattern will detect matches, i want to apply some operation on matches and return it back at the same position, the result string should be like:

string text1_mod = "this is original text contains MATCH1-MOD and MATCH2-MOD and maybe contain MATCH3-MOD and so on ...";



thanks in advance, any help will be appreciated.

Continue reading...
 
Back
Top