ya but that version includes the trailing \s
I was wondering if that was the best way to
get that trailing \s trimmed out.. i stumbled upon
the result with http:// included and the \s trimmed
out ... sort of thinking out loud and using it, i was thinking nested and sort of got
there by accident, not really getting it just yet... thats so
flexible it bends my brain a little trying to solve the puzzle
because the tools are there to tear a pattern out of infinite
possibilities..
$re = '/http:\/\/(.*?)\s/';
array
0 =>
array
0 => string 'http://www.privacyrights.org/fs/fs6a-facta.htm ' (length=47)
1 => string 'http://uspirg.org/uspirg.asp?id2=13649 ' (length=39)
2 => string 'http://en.wikipedia.org/wiki/Fair_and_Accurate_Credit_Transactions_Act
' (length=71)
1 =>
array
0 => string 'www.privacyrights.org/fs/fs6a-facta.htm' (length=39)
1 => string 'uspirg.org/uspirg.asp?id2=13649' (length=31)
2 => string 'en.wikipedia.org/wiki/Fair_and_Accurate_Credit_Transactions_Act' (length=63)