Regex captured group not working? :?

Hello, I have a text that includes words like this - ** cats **
I want to replace it to [b]cats[ /b] so bubble could display it correctly.

So I tried using the regex to find the word ** cats ** and replace it with itself using the capture groups operator - $1

It finds the word correctly, but instead of replacing it with it itself I’m getting a literal $1
Any ideas?

Thank you!

I think you need to use parentheses to designate the capture group…


1 Like

Ahh damnit, my bad! Everything works like that, thank you, appreciate it!!

This topic was automatically closed after 14 days. New replies are no longer allowed.