News for hackers. Stuff that matters.
Re:Advanced Regular Expressions by DEinspanjer on Thursday May 07, 2009 @02:12PM (#598386)
Is it bi-directional? Is it on the vim.org website somewhere? I find Vim's escape heavy syntax cumbersome and I frequently wish I could write a quick Perl syntax regex and convert it to Vim.

Of course, Vim is one of the few regex engines to support variable width negative look-behinds, so I guess that counts for something. :)

Re:Advanced Regular Expressions by gustavo_duarte on Thursday May 07, 2009 @02:19PM (#598397)
Only Vim -> Perl is fully fleshed out right now. Doing it the other way would be fairly easy though because so much would be reused. Also, with the Vim regexes I had to worry about magicness and so on, the Perl stuff would parse easier.

It's not in Vim.org. I had the code floating around with an MIT license, but it's offline right now. I thought about building a page where you could do the translation (I figured Perl -> Vim is what people would want more) or just use a simple GET request from other code.

Maybe I should do the Perl -> Vim bit and make it available.