Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » preg_matc
  • comma separated numeric values

    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 ...
    Posted to Construction Advice (Forum) by Akashic on July 18, 2008