Using VI to search for specific patterns

April 17, 2005

So this is a short little something I was working on tonight. Yes tonight as in a saturday night. I am a workaholic.

Anyway, if you would like to search for the following pattern using VI or if you would like to use syntax highlighting using your own vim file.

Patter: ##/##/##@##:##:##

Search command:


or the much cooler one


For all your wildcard needs, remember to refer back to the awesome VI doc site here. Enjoy.

~david macias

posted in Linux by dmacias

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

Powered by Wordpress and MySQL. Theme by Shlomi Noach,