<?php preg_match_all('/^(([a-z]+\[[a-z| |,]+\])\,?)+$/', $methods, $result); echo $result;?>
Standard input is empty
Array
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!