Loading ...
Sorry, an error occurred while loading the content.

73134Re: VIML regex comparison problem

Expand Messages
  • Mike Williams
    Sep 9 3:53 AM
      On 09/09/2013 11:38, Christian Brabandt wrote:
      > On Mon, September 9, 2013 12:31, Mike Williams wrote:
      >> On 09/09/2013 10:56, Nikolay Pavlov wrote:
      >>> On Sep 9, 2013 1:40 PM, "Mike Williams"
      >>> <mike.williams@...>
      >>> wrote:
      >> I had tried calls to escape(..., '\') and that made no difference.
      > Where did you do that? You need to make sure, that you only escape
      > the right side of the comparison and not both sides.


      >> Changing the test
      >> if l:d !~ "^\V" . s:dir1
      >> makes no difference.
      > What happens, if you changed that line to:
      > if l:d !~ escape(s:dir1, '\\')

      Yep that works. Classic case of using regex to solve a problem and
      getting two problems. Just needed to check a substring which Nikolay


      Old enough to know better, but young enough to not care.

      You received this message from the "vim_dev" 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

      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 10 messages in this topic