138578Re: regex variable
- Jul 18, 2013On Thursday, July 18, 2013 3:42:06 PM UTC+2, shawn wilson wrote:
> Is there a way of using a variable in a regex?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.
> I'm constantly looking for the first octet of IP addresses, so I do:
> What I've been doing is hitting / and up arrow and then edit but if I
> could store [^0-9\.] in something easily accessed, that would save
> some time.
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.
- << Previous post in topic Next post in topic >>