![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Functions | |
| make_charset (letters) | |
| regex_opt_inner (strings, open_paren) | |
| regex_opt (strings, prefix='', suffix='') | |
Variables | |
| CS_ESCAPE = re.compile(r'[\[\^\\\-\]]') | |
| FIRST_ELEMENT = itemgetter(0) | |
pygments.regexopt
~~~~~~~~~~~~~~~~~
An algorithm that generates optimized regexes for matching long lists of
literal strings.
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
| pip._vendor.pygments.regexopt.regex_opt | ( | strings, | |
prefix = '', |
|||
suffix = '' |
|||
| ) |
Return a compiled regex that matches any string in the given list. The strings to match must be literal strings, not regexes. They will be regex-escaped. *prefix* and *suffix* are pre- and appended to the final regex.
| pip._vendor.pygments.regexopt.regex_opt_inner | ( | strings, | |
| open_paren | |||
| ) |
Return a regex that matches any string in the sorted list of strings.