fork download
  1. <?php
  2.  
  3. $re = '/Adress:\s*(.*?)\s*\((.*)\)/';
  4. $str = 'Adress: Big Avenue 9 - National (FOREST (THE)).';
  5. if (preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0)) {
  6. print_r($matches);
  7. }
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => Adress: Big Avenue 9 - National (FOREST (THE))
            [1] => Big Avenue 9 - National
            [2] => FOREST (THE)
        )

)