neves
8/3/2012 - 2:35 PM

regexp.php

<?php
$rx = "!\[soundcloud id='(\d+)'\]!";
$str = <<<S
[soundcloud id='44111489']
[soundcloud id='54111489']
S;

$match = array();
preg_match_all($rx, $str, $match);

print_r($match[1]);