I have a file with a few thousand lines, and in this file I have some regex expressions...
The regex expressions are all over the place, and recently we've changed the expression and I need to update all of them.
I need to change all instances of: [A-z -']+ with [A-z \-']+
so I tried doing :%s/[A-z -']+/[A-z \-']+/g but that replaced all occurrences of [A-z -']+ with [A-z -'[A-z -']+
Is there some other way to do this?