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

Re: Regex question (possible bug?)

Expand Messages
  • glts
    ... Not a bug, $ doesn t need backslash-escaping in nomagic mode. See the table at :h /magic . Best, -- -- You received this message from the vim_dev
    Message 1 of 2 , Aug 6, 2013
    • 0 Attachment
      On Tue, Aug 6, 2013 at 10:09 PM, Hisashi T Fujinaka <htodd@...> wrote:
      > I'm in nomagic and I'm trying to delete the last directory from a
      > directory path. So /a/b/c/d would end up being /a/b/c.
      >
      > This doesn't work, and I may be screwing it up:
      > :%s,/\[a-z]\*\$,,
      >
      > Or is it a bug?

      Not a bug, $ doesn't need backslash-escaping in nomagic mode.
      See the table at ":h /magic".

      Best,

      --
      --
      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.
    Your message has been successfully submitted and would be delivered to recipients shortly.