[Solved] Regex to remove leading 9 from a phone number, that isn’t at the start of the line [closed]
The following command should do what you want: %s/^\d\{3} \zs9/ Note that this will only work if the phone numbers have the exact format you give. The regex is very specific, to make it a little more unlikely to screw up anything else in the file. Since you said you were having trouble, I’ll explain … Read more