On Monday, August 6, 2012 2:49:40 PM UTC-5, ping wrote:
> thanks Ben.
>
>
>
> I miss perl on the ability to comment liekt his:
>
>
>
> ...
>
>
>
> $dataline=~(/
>
> \s*
>
> (\w+) #wanted value
>
> \s*
>
> = #=
>
> \s*{\s*
>
> (.*?) #cli
>
> \s*}\s*
>
> (?:
>
> (?: #either followed by ptn(s)
>
> : #:
>
> \s*{\s*
>
> (.*?) #ptn1
>
> \s*}
>
> (?: #ptn2 or nothing
>
> :
>
> \s*\{\s*
>
> (.*?) #ptn2
>
> \s*\}\s*
>
> | #or...
>
> \s* #nothing
>
> )
>
> )
>
> | #or
>
> \s* #no ptns at all
>
> )
>
> /x)
>
I figured that's what you meant. You can't do that in Vim script in the same
way, but you can run perl (or python, scheme, LUA, etc.) directly from Vim
script, so depending on what you're doing it might be possible to drop into
Perl for a regex or something.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php