Question:
I have this stringThis is some text (and text), and this is another text (AND TexT), the completion goes here.
I need in JavaScript -using a regex- to replace all occurrences of the string “text (and text)” with “NewText” (case insensitive). so the final result should be
This is some NewText, and this is another NewText, the completion goes here.
Answer:
If you have better answer, please add a comment about this, thank you!