Reman
Reman

Reputation: 8109

VIM: search urls

I found a nice search pattern to find all emails in a text in VIM:
\([a-zA-Z0-9._%+-]\+@[a-zA-Z0-9.-]\+\.[a-zA-Z]\{2,4}\)

Does anyone has a nice search command to find all url's in VIM?

Upvotes: 0

Views: 544

Answers (1)

Dhruva Sagar
Dhruva Sagar

Reputation: 7307

This should do it - \(\(ht\|f\)tp:\/\/\.*\)\s

Upvotes: 1

Related Questions