Regex Help - Greedy vs. Non-Greedy
drew at mykitchentable.net
Wed Sep 9 16:15:35 UTC 2009
I'm trying to do a search and replace in vim. I have lines like this:
I'm want to match "http:*" and stop matching at the first ";". My basic
But it's matching *all* the semi-colons. Thus I've Googled and tried
various incatations to try and make my regex "non-greedy" but I can't
seem to come up with the correct combination.
How can I write a regex that stops matching at the first semi-colon?
Be a Great Magician!
Visit The Alchemist's Warehouse
More information about the freebsd-questions