I'm trying to do a search and replace in vim.  I have lines like this:
http://site1/dir/;
http://site2/dir/;LastName, FirstName;Phone;
http://site3/dir/;LastName, FirstName;
http://site4/dir/;

I'm want to match "http:*" and stop matching at the first ";". My basic regex is:

/http:.\+;/

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?

Thanks,

Drew

--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to