Searched refs:regex (Results 1 – 3 of 3) sorted by relevance
/PHP-Parser/grammar/ |
H A D | phpyLang.php | 155 function regex($regex) { argument 156 return '~' . LIB . '(?:' . str_replace('~', '\~', $regex) . ')~'; 159 function magicSplit($regex, $string) { argument 160 …$pieces = preg_split(regex('(?:(?&string)|(?&comment)|(?&code))(*SKIP)(*FAIL)|' . $regex), $string…
|
/PHP-Parser/lib/PhpParser/ |
H A D | ParserAbstract.php | 780 $regex = '/' . $start . '([ \t]*)(' . $end . ')?/'; 782 $regex, 814 …$regex = '/\A[bB]?<<<[ \t]*[\'"]?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\'"]?(?:\r\n|\n|\r)\z/… 815 $result = preg_match($regex, $startToken, $matches);
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 1069 $regex = '/\'|\\\\(?=[\'\\\\]|$)|(?<=\\\\)\\\\/'; 1070 return '\'' . preg_replace($regex, '\\\\$0', $string) . '\''; 1089 $regex = '/( 1104 return preg_replace_callback($regex, function ($matches): string {
|
Completed in 21 milliseconds