On 2013-09-19, Christian Brabandt wrote:
> On Thu, September 19, 2013 07:10, tom arnall wrote:
> > On 9/17/13, Gary Johnson wrote:
> >> On 2013-09-17, tom arnall wrote:
> >>> with nomagic /^\[\w"] does not get every match. it skips random
> >>> intervals of matching lines with every try. que pasa?
> >>
> >> For example, ....
> >
> > In the process of getting an example, I found that vim is skipping to
> > lines starting with 'w'. What do I say in nomagic that gets all letter
> > chars and number chars and double quote?
>
> Yes, because that is what you told you RE to do. [\w"] Means match either
> '\' or 'w' or '"'. If you want to have all letters and numbers and
> double quotes, try explicitly [a-zA-Z0-9"]
To elaborate a bit, you can't use backslash-escaped character
classes within a collection, i.e., between [ and ].
You can, however, use named character classes such as [:alnum:], so
this pattern would also work:
^\[[:alnum:]"]
Regards,
Gary
--
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.