EQnoble
Well-known member
Hello,
I was wondering how to replace [SOMETHING] with [SOMETHINGdifferent].
I have tried [SOMETHING] as the regular expression with no success.
Thanks!
When constructing a regular expression you need to use delimiters for one thing (they define the beginning and end of the expression #EXPRESSION#, and then when you want/need to you can also set flags #EXPRESSION#i, lowercase i meaning case insensitive)
and in regex [] defines a character class , [0-9]+ for example means any amount of any digits...if you want to match a literal [ you need to escape it so when the regex is interpreted it sees a character instead of the opening of a character class like this \[
#\[SOMETHING]#siu