I need quick help with regex I have
'http://127.0.0.1:5000/register'
and want to replace it with
`${process.env.API_URL}/register`
doing this regex:
'http://127.0.0.1:5000/.*'
takes the whole thing
I need quick help with regex I have
'http://127.0.0.1:5000/register'
and want to replace it with
`${process.env.API_URL}/register`
doing this regex:
'http://127.0.0.1:5000/.*'
takes the whole thing
Use a capture group to copy the part after /
Find: 'http://127.0.0.1:5000/(.*)'
Replace: `${process.env.API_URL}/$1`