136
rated 0 times
[
140]
[
4]
/ answers: 1 / hits: 36024
/ 14 Years ago, mon, february 7, 2011, 12:00:00
I need regex for replace words inside text and not part of the words.
My code that replace 'de' also when it’s part of the word:
str=de degree deep de;
output=str.replace(new RegExp('de','g'),'');
output== gree ep
Output that I need: degree deep
What should be regex for get proper output?
More From » regex