All Tags »
preg_replace »
preg_matc
Sorry, but there are no more tags available to filter with.
-
Hi,
In PHP I'm trying to filter the string looking for:
[options=1,6,22,103]
and then to extract numeric values into the array. As I just started my fun with regular expressions, the only way I can do it is like:
preg_match('\/[options=(.*?)\]/', $content, $matches);
But that will return numbers separated with commas, which ...