Regular expression search replace in Sublime Text 2
Usually a back-reference is either $1 or \1 (backslash one) for the first capture group (the first match of a pattern in parentheses), and indeed Sublime supports both syntaxes. So try: my name used to be \1 or my name used to be $1 Also note that your original capture pattern: my name is (\w)+ … Read more