$_='o.netw/o'; @punks = /[^\w\s]/g; print "<@punks>"; #### <. < > / < >> #### while(){ /http:\S*[^\w\s]/g and s/\G\n//; print; } __DATA__ there is an http://whatever.com/address/ crossing/line/boundaries.html right in the middle of this nice string.