I am pretty new to the use of preg_match. Searched a lot for an answer before posting this question. Found a lot of posts to get data based on youtube ID etc. But nothing as
Your regular expression:
preg_match('/^\[\#([0-9]+)\].+/i', $string, $array);