[ Index ]

PHP Cross Reference of phpBB-3.3.5-deutsch

title

Body

[close]

/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

  getAllowedCharacterRegexp()
  getCaptureNames()
  parse()

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: Mon Oct 4 17:42:11 2021 Cross-referenced by PHPXref 0.7.1