|
|
Browse by Tags
All Tags » preg_matc
-
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 ...
|
|
|