I would like to do a pattern match against a string, sometimes this pattern
will include the full string, and sometimes it will not, if the pattern does
not include the second match I still want to get the first pattern match.
Below is my code, and the results I am looking for.
Thanks in advance,
$tranport = ":[127.0.0.l)";
print_r ($transport) -> Array ( )
** I want this to return "127.0.0.1"
$transport = "smtp:[184.108.40.206]:25";
print_r ($transport) -> Array (  => :[220.127.116.11]:25  => 18.104.22.168
 => 25 )
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php