If you are using the Kate text editor and you are going to use parenthesis to capture parts of your regex that you want to reuse (a submatch), the character you have to prepend is \, the backslash. But it isn't the dollar sign or any other character on Kate for Kubuntu Linux anyway.
So if you are wanting to switch wordsomething to somethingword in Kate, your regex will look like this (word)(something) and your replacement will look like this \2\1 to end up with somethingword when it is all done
wordsomething find (word)(something)
replace with \2\1 finishes with something word
So if you are wanting to switch wordsomething to somethingword in Kate, your regex will look like this (word)(something) and your replacement will look like this \2\1 to end up with somethingword when it is all done
wordsomething find (word)(something)
replace with \2\1 finishes with something word
No comments:
Post a Comment