[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/vendor/s9e/text-formatter/src/Configurator/Helpers/ -> RegexpParser.php (summary)

(no description)

Copyright: Copyright (c) 2010-2021 The s9e authors
License: http://www.opensource.org/licenses/mit-license.php The MIT License
File Size: 393 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions


Functions that are not part of a class:

getAllowedCharacterRegexp($regexp)   X-Ref
Generate a regexp that matches any single character allowed in a regexp

This method will generate a regexp that can be used to determine whether a given character
could in theory be allowed in a string that matches the source regexp. For example, the source
regexp /^a+$/D would generate /a/ while /^foo\d+$/D would generate /[fo\d]/ whereas the regexp
/foo/ would generate // because it's not anchored so any characters could be found before or
after the literal "foo".

param: string $regexp Source regexp
return: string         Regexp that matches any single character allowed in the source regexp

getCaptureNames($regexp)   X-Ref
Return the name of each capture in given regexp

Will return an empty string for unnamed captures

param: string   $regexp
return: string[]

parse($regexp)   X-Ref

param: string $regexp
return: array

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1