Class Regex

The REGEX base class. All other classes inherit
from this one.

Part of:

class word-boundary, class void, class str, class standalone, class seq, class repetition, class register, class lookbehind, class lookahead, class filter, class everything, class char-class, class branch, class back-reference, class anchor, class alternation, package cl-ppcre

Direct Subclass

alternation

ALTERNATION objects represent alternations of
regexes. (Like “a|b” ist the alternation of “a” or ...

anchor

ANCHOR objects represent anchors like “^” or “$”.

back-reference

BACK-REFERENCE objects represent backreferences.

branch

BRANCH objects represent Perl's conditional regular
expressions.

char-class

CHAR-CLASS objects represent character classes.

everything

EVERYTHING objects represent regexes matching
“everything”, i.e. dots.

filter

FILTER objects represent arbitrary functions
defined by the user.

lookahead

LOOKAHEAD objects represent look-ahead assertions.

lookbehind

LOOKBEHIND objects represent look-behind assertions.

register

REGISTER objects represent register groups.

repetition

REPETITION objects represent repetitions of regexes.

seq

SEQ objects represents sequences of
regexes. (Like “ab” is the sequence of “a” and “b”.)

standalone

A standalone regular expression.

str

STR objects represent string.

void

VOID objects represent empty regular expressions.

word-boundary

WORD-BOUNDARY objects represent word-boundary assertions.

Direct Method

case-mode

Utility function used by the optimizer (see GATHER-STRINGS).
Returns a keyword denoting the case-...

compute-min-rest

Returns the minimal length of REGEX plus
CURRENT-MIN-REST. This is similar to REGEX-MIN-LENGTH ex...

compute-offsets

Returns the offset the following regex would have
relative to START-POS or NIL if we can't comput...

end-string-aux

Returns the constant string (if it exists) REGEX
ends with wrapped into a STR object, otherwise N...

everythingpReturns an EVERYTHING object if REGEX is equivalent
to this object, otherwise NIL. So, “(.){1}” w...
flatten

Merges adjacent sequences and alternations, i.e. it
transforms #<SEQ #<STR “a”> #<SEQ #<STR “b”> ...

gather-strings

Collects adjacent strings or characters into one
string provided they have the same case mode. Th...

regex-length

Return the length of REGEX if it is fixed, NIL otherwise.

regex-min-length

Returns the minimal length of REGEX.

remove-registers

Returns a deep copy of a REGEX (see COPY-REGEX) and
optionally removes embedded REGISTER objects ...

start-anchored-p

Returns T if REGEX starts with a “real” start
anchor, i.e. one that's not in multi-line mode, NIL...