regex - Using VI how can I search and replace for the following statement? -


I need to change the following:

  create table / * 32312 if not Then create the table if you have not been used for the * / `access`  

> I have tried

 :% s / \ / \ * \! \ D + (. *) \ * \ // \ 1 / g  

But this is not to know what I am doing wrong?

Vime requires backslacing (or * instead of *) Also, Grouping brackets have to be backslash. Like this:

 :% s / \ / \ * \! \ D \ + \. (* * * * * * * * * * / 1 / g] Yes, Voic's old-style poses tend to suck rigacks: / 

Edit: Like That is stated in the comments below, and \ d is actually supported, for example, to edit the example regex to correct it. Also see an example of Brian Capper for a more concise and readable version.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -