{"action":"opened","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/3376","labels_url":"https://api.github.com/repos/neovim/neovim/issues/3376/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3376/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/3376/events","html_url":"https://github.com/neovim/neovim/issues/3376","id":107820273,"number":3376,"title":"add flag (like \\m and \\v) to enable Perl regex syntax","user":{"login":"sunaku","id":9863,"avatar_url":"https://avatars.githubusercontent.com/u/9863?v=3","gravatar_id":"","url":"https://api.github.com/users/sunaku","html_url":"https://github.com/sunaku","followers_url":"https://api.github.com/users/sunaku/followers","following_url":"https://api.github.com/users/sunaku/following{/other_user}","gists_url":"https://api.github.com/users/sunaku/gists{/gist_id}","starred_url":"https://api.github.com/users/sunaku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunaku/subscriptions","organizations_url":"https://api.github.com/users/sunaku/orgs","repos_url":"https://api.github.com/users/sunaku/repos","events_url":"https://api.github.com/users/sunaku/events{/privacy}","received_events_url":"https://api.github.com/users/sunaku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-22T23:07:33Z","updated_at":"2015-09-22T23:07:33Z","closed_at":null,"body":"Hello,\r\n\r\nPlease add support for a new in-regex flag (similar to the existing `\\m` magic and `\\v` very-magic ones) that enables Perl regular expression syntax, which you might implement using [the PCRE library](http://www.pcre.org/).\r\n\r\nAccording to my exhaustive perusal of `:help \\flag` documentation, there are only 4 flags that Vim has not already claimed for itself: g, j, q, y.  Of these, I feel that perhaps `g` (which I read as \"grep\" or \"generic\" or \"generous\") would be the most suitable for this endeavor.\r\n\r\nTo illustrate, this is how I imagine this flag would work:\r\n\r\n```vim\r\n/\\g(my perl regex syntax goes here)\\G(normal vim regex syntax goes here)/\r\n```\r\n\r\nThe `\\g` flag would turn on the Perl regex syntax and the `\\G` flag would turn it back off.  This on/off mechanism mirrors that of `\\m` and `\\M` magic regexps as well as `\\v` and `\\V` very-magic ones.\r\n\r\nThanks for your consideration."}}