12345678910111213141516 |
- <?php
- /**
- * The Feeler framework, licensed under Mit license
- * Author: Rick Guo
- */
- class Regex implements IRegex{
- public static function match($regex, $data){
- preg_match($regex, $data, $matches);
- return $matches;
- }
- public static function matchKeyWithType($data){
- return self::match("/^\s*?\((.*?)\)\s*?(.*?)\s*$/", $data);
- }
- }
|