Marc Chantreux wrote:
hi all,
Is there a way to obtain the perl x modifier behaviour in vim regex
(spaces are non significants, comments are allowed). This is very
usefull to make a regexp more readable.
regards
mc
You can always add one or more lines of comments above or below the line
including the pattern in a Vim script, or even, in most cases, at the end of
the line; but IIUC you cannot insert comments in the middle of a pattern.
To use perl regexps, you can of course embed perl statements in a perl-enabled
version of Vim; but of course at the cost of making the script less portable.
Best regards,
Tony.
- Re: perl x modifier regex ? A.J.Mechelynck
-