Answers for "javascript regex replace capture group"

0

javascript regex grouping replace

"hello _there_".replace(/_(.*?)_/, "<div>$1</div>")
Posted by: Guest on August-26-2021
0

replace with regex capture group

str.replace(/(?<=name="w+)d+(?=w+")/, '!NEW_ID!') // look behind & look ahead
Posted by: Guest on May-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language