That would grab any number of words seperated by dots (without spaces), and would catch the protocol as well, if there is one.@urls = $string =~ m!(?:\w+:/*)?(?:[\w\-]+\.)+\w+!g;
In reply to Re: Grepping out strings
by Anonymous Monk
in thread Grepping out strings
by existem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |