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

138582Re: regex variable

Expand Messages
  • Tony Mechelynck
    Jul 18, 2013
      On 07/19/13 03:34, shawn wilson wrote:
      >
      > On Jul 18, 2013 5:54 PM, "Ben Fritz" <fritzophrenic@...
      > <mailto:fritzophrenic@...>> wrote:
      > >
      > > On Thursday, July 18, 2013 3:51:01 PM UTC-5, Lech Lorens wrote:
      > > > On Thursday, July 18, 2013 3:42:06 PM UTC+2, shawn wilson wrote:
      > > > >
      > > > > I'm constantly looking for the first octet of IP addresses, so I do:
      > > > > /[^0-9\.]10\.
      > > > >
      > > >
      > > > Slightly off-topic, but wanted to make you aware that [^\.] matches
      > anything that isn't a dot AND IS NOT A BACKSLASH. IOW backslash is not
      > escaping the dot inside the [] range.
      > > >
      > >
      > > And furthermore the . doesn't NEED escaping inside the [] range.
      > >
      >
      > This is probably a feature request but I really do hate the regex engine
      > and would love to swap it out. Is there / can there be a compile time
      > option to use a different engine?

      There is a runtime option to disable the new engine in favour of the old
      one — or vice-versa. See :help 'regexpengine'

      --
      The only difference in the game of love over the last few thousand years
      is that they've changed trumps from clubs to diamonds.
      -- The Indianapolis Star

      --
      --
      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

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