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

Re: Regular Expression Help

Expand Messages
  • Terence Monteiro
    ... You ll need a after the s*. Depending on whether you want to capture the single quotes: / ( w + ) s*= s* ( |[^ ] )* Regards, Terence. -- You
    Message 1 of 6 , Mar 31, 2011
      On Fri, Apr 1, 2011 at 11:53 AM, Terence Monteiro wrote:
      /\(\w\+\)\s*=\s*\(\(\\'\|[^']\)*\)'

      You'll need a ' after the \s*. Depending on whether you want to capture the single quotes:

      \(\w\+\)\s*=\s*'\(\\'\|[^']\)*'

      Regards, Terence.

      --
      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
    • Alessandro Antonello
      ... Man, you are a genius! Thanks a lot! -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are
      Message 2 of 6 , Apr 1, 2011
        2011/4/1 Jürgen Krämer <jottkaerr@...>:
        > /\v(\w+)\s*\=\s*('(\\'|[^'])*'|\d+)/i

        Man, you are a genius!

        Thanks a lot!

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