fork download
  1. <?php
  2.  
  3. $song = 'song file="http://m...content-available-to-author-only...p.net/images/radio/2013/t4/Thu Ba ngay 16-4-2013.mp3" title="Thu Ba ngay 16-4-2013"/';
  4. $exp = '@song file="(http.+?\.mp3)" title=".+?(\d+\-\d+\-\d{4})"/@i';
  5.  
  6. if(preg_match($exp, $song, $match) === 1){
  7. var_dump($match);
  8. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
array(3) {
  [0]=>
  string(114) "song file="http://m...content-available-to-author-only...p.net/images/radio/2013/t4/Thu Ba ngay 16-4-2013.mp3" title="Thu Ba ngay 16-4-2013"/"
  [1]=>
  string(71) "http://m...content-available-to-author-only...p.net/images/radio/2013/t4/Thu Ba ngay 16-4-2013.mp3"
  [2]=>
  string(9) "16-4-2013"
}