I want to find every url enclosed by squggily braces {} as in this example:
{ln_http://www.foo.boo}
but if there are two such urls on one line of source my regular expression gobbles up all of them! Here is ths snippet, and thanks in advance for anyones help on this!
if (preg_match_all("/\\${ln_(http:\/\/.+)}/i",$attachmentText, $matches ))
{
for( $idx = 0; $idx < count( $matches[1] ); $idx++ )
{
echo "matches = " . $idx . " " . $matches[0][$idx] . "<BR>\n";
}
}
Thanks in advance.
Page