Home
last modified time | relevance | path

Searched refs:regex (Results 1 – 3 of 3) sorted by relevance

/PHP-Parser/grammar/
H A DphpyLang.php155 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 DParserAbstract.php782 $regex = '/' . $start . '([ \t]*)(' . $end . ')?/';
784 $regex,
816 …$regex = '/\A[bB]?<<<[ \t]*[\'"]?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\'"]?(?:\r\n|\n|\r)\z/…
817 $result = preg_match($regex, $startToken, $matches);
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php1069 $regex = '/\'|\\\\(?=[\'\\\\]|$)|(?<=\\\\)\\\\/';
1070 return '\'' . preg_replace($regex, '\\\\$0', $string) . '\'';
1089 $regex = '/(
1104 return preg_replace_callback($regex, function ($matches): string {

Completed in 22 milliseconds