Regular Expression problem

If none of the more specific forums is the right place to ask

Regular Expression problem

Postby shogun1234 » 2020-01-06 14:46

I have a string which looks like

Code: Select all
LIST(NAME(john,123),NAME(brown, 456),...)

In vim I want to wrap personal names with double quotes. So the string would become

Code: Select all
LIST(NAME("john", 123), NAME("brown", 456), ...)

The RE I attempt to match is

Code: Select all

But I find I can't match personal names. What's the write way to match personal names with RE? Vim version is 8.1. Thanks
Posts: 132
Joined: 2006-07-13 08:04

Return to General Questions

Who is online

Users browsing this forum: No registered users and 18 guests