Answers for "search and replace in regex"

8

regex replace /

// replaces all / in a String with _
str = str.replace(///g,'_');
Posted by: Guest on May-29-2020
0

Replace string using regex

import re
line = re.sub(r"</?[d+>", "", line)
Posted by: Guest on September-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language