Regex replace string


#1

“select=”\w+"

is selecting the text… now i am not able to replace with

select="($1)"

its replacing with ($1)

how to use replace using regex

Any help is appreciated
thank you


#2

Change your search to select="(\w+)". Once you have a capture group (the ()), the $1 will work correctly.


#3

Thank you it worked exactly when i used () it captured the text