showing results for - "replace with regex capture group"
10 Jul 2017
1str.replace(/(.*name="\w+)\d+(\w+".*)/, "$1!NEW_ID!$3")
12 Apr 2016
1print(readline().replace(/(\d+)(.) ?/g,(a,b,c)=>c.repeat(b)))
19 Oct 2016
1str.replace(/(?<=name="\w+)\d+(?=\w+")/, '!NEW_ID!') // look behind & look ahead
queries leading to this page
matching groups regexreplace regex lines groupreplace only the regex groupregex use group in replace pythonpython regex replace with capture grouphow to replace regex groups data by other valueregex modify capture groupreplace with regex capture groupregex capture group and replacesplunk replace regex groupreplace group regular expression replace regex capture groupregex capture group adn replacechange element of captured group regexrepl c3 a7ace regex replace capture groupsregex find and replace groupregex replace with capture group pythonhow to use capturing group javascript regex replaceregexreplace capture groupregex group replacereplace regex match with capture grouprepit replace regex groupregex replace groupsregex find replace capture groupjavascript string replace regex capture groupreplace group names regexregex replace js but with capture groupsubstitute group of string using regular expressionregex replace capture group pythonregex replace specific groupjs regex replace capture group find and replace regular expressions groupregex replace python use capture groupreplace group regexregex replace capture grouphow to replace regex using groupsreplace capture group regex javascriptregex replace group 1regex replace groupjs regex replace with capture groupreplace regex with match groupsregex101 replace groupregex js replace group matchedregex use capture group in replaceregex replace use groupsreplace group regex ideacapture and manipulate group regex replace pythonregex use capture group in replace pythonfind and replace a group with regexchange regex by capture grouprelate to group in replace regexuse of group name in regex replaceregex replace group and not singleregex using capture groups to search and replace in javascriptregex use group in replaceregex replace non capturing groupreplace regex groups with anotherregex replace group by one valueregex replace function with capturing groupreplace capture group regexchange element of capture group regexregex re python replace capture grouphow to use groups in regex replacereplace with found group recapture group regex repljavascript replace regex capture groupstring replace using regex groupsregex replace group onlyregex replace by groupreplace with regex js groupregex capturing group replace afterreplace with regex capture group