0

Suppose to have this string: test

and I want to delete all occurences of test in a example string.

Suppose to have this string:

@33<.ùasdasd3123test#21871,testasdfxtestsdfgùà+è

The string can be composed in all way is not only letters or point, my regex is:

new Regex(/\test/g);

but this regex delete all occurrency about the world text in the string. Anyone can help me?

Polly
  • 637
  • 3
  • 12
  • 25

0 Answers0