hi ,sorry for my english.

I am trying to remember the use of regular expressions and i have a
problem  with this  :

i had a text with diferents strings, for example, url , like this :

fajljsfjaosfohttp://www.marca.comjafosjodfahttp://www.as.comjfoaasjofja

i want to extract the diferents url  but i try with :
/(http\:\/\/.+com)/ it returns a long match:



   1. http://www.marca.comjafosjodfahttp://www.as.com


how can i group this in 2 diferents matchs? example :
1- http://www.marca.com
2- http://www.as.com


thanks
-- 
Posted via http://www.ruby-forum.com/.