Monday, March 22, 2010

Re: Using wild characters in replace pattern

> Thanks a lot for a quick and clear response.

This is by far the best mailing list I'm on in terms of fast,
helpful responses -- even after 10 years of using vi/vim, I still
regularly learn new things here.

> I tried googling the matter with many keywords without success.
> My ignorance in regular expressions is evident though.

For any particular regular-expression, I'm not sure you'd have
much luck googling outside of a few common cases (basic email
address, IP addresses, numbers, etc). But if you invest the time
to learn how regexps work (and there are plenty of google-able
websites such as www.regular-expressions.info that teach
regexps), they're almost a programming language onto themselves,
so you can learn to write them yourself as needed. Most of the
concepts are the same, but there are minor difference in syntax
across libraries (vim vs perl vs python vs sed vs ...), but once
you learn the concepts, you just search your use-specific help
(such as vim's help) for how to write the concept you want.

-tim


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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: