Forum Moderators: coopster
(X is a number)
This is what I have so far (will match "img X":
preg_match_all ("/\bimg (\d+)\b/i" , $description, $matches)
How to i modify it so it includes the opening and closing squarebrackets?
Doing it like this DOES NOT work:
preg_match_all ("/\b\[img (\d+)\]\b/i" , $description, $matches)
Thanks in advance.
preg_match_all ("/\[img (\d+)\]/i" , $description, $matches);