Thank you Tony and Jürgen,
> > Robert Mark Bram wrote:
> >> Can anyone guide me as to how I can modify the ".*" in the above
> >> expression to deal with new line chars too?
>
> > just prefix it with "\_", i.e., make it "\_.*".
This one resulted in no targets being identified.
--regex-ant=/^[ \t]*<[ \t]*target.*name="([^<"&]+)"\_.*>/\1/t,target/i
> > And you probably want to put backslashes before "(", ")", and "+".
The plugin must be handling the RE differently, because the
backslashes broke the search i.e. no targets were identified with
this:--regex-ant=/^[ \t]*<[ \t]*target.*name="\([^<"&]\+\)".*>/\1/
t,target/i
> Yes, and beware that the star multi is greedy, i.e., if you have several
> matched begin- and end-patterns in the file, begin\_.*end will always
> match with the _last_ "end" in the file, gobbling up any number of
> begin-end blocks in between. \_.{-} will match as few of "anything
> including a line break" as possible, which might be better suited to
> your needs here. See ":help /multi".
This one resulted in the same i.e. no targets identified.
--regex-ant=/^[ \t]*<[ \t]*target.*name="([^<"&]+)"\_.{-}>/\1/t,target/
i
Rob
:)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---