Thursday, 22 August 2013

Vim positive lookahead regex

Vim positive lookahead regex

I am still not so used to the vim regex syntax. I have this code:
rename_column :keywords, :textline_two_id_4, :textline_two_id_4
I would like to match the last id with a positive lookahead in VIMs regex
syntax.
How would you do this?
\id@=_\d$
This does not work.

No comments:

Post a Comment