pub enum ReadableRe<'a> {
Show 63 variants
Digit,
Word,
Whitespace,
NonDigit,
NonWord,
NonWhitespace,
Boundary,
AsciiLetter,
AsciiNonLetter,
AsciiUppercase,
AsciiNonUppercase,
AsciiLowercase,
AsciiNonLowercase,
AsciiAlphanumeric,
AsciiNonAlphanumeric,
AsciiNumeric,
AsciiNonNumeric,
Hexadecimal,
NonHexadecimal,
Anything,
Everything,
SomethingGreedy,
Something,
AnyChar,
Period,
Caret,
Dollar,
Asterisk,
PlusSign,
MinusSign,
QuestionMark,
OpenBrace,
CloseBrace,
OpenBracket,
CloseBracket,
OpenParenthesis,
CloseParenthesis,
BackSlash,
Pipe,
Newline,
Tab,
Quote,
DoubleQuote,
Raw(&'a str),
String(String),
Concat(Concat<'a>),
Escape(Escape<'a>),
Group(Group<'a>),
NamedGroup(NamedGroup<'a>),
NonCaptureGroup(NonCaptureGroup<'a>),
Optional(Optional<'a>),
Either(Either<'a>),
Exactly(Exactly<'a>),
Ranged(Ranged<'a>),
ZeroOrMore(ZeroOrMore<'a>),
ZeroOrMoreLazy(ZeroOrMoreLazy<'a>),
OneOrMore(OneOrMore<'a>),
OneOrMoreLazy(OneOrMoreLazy<'a>),
StartsWith(StartsWith<'a>),
EndsWith(EndsWith<'a>),
StartsAndEndsWith(StartsAndEndsWith<'a>),
Chars(Chars),
NotChars(NotChars),
}
Expand description
Enum wrapper around regex expressions, it is a recursive version of regexes
Variants§
Digit
digit match, "\d"
Word
word match, "\w"
Whitespace
whitespace match, "\s"
NonDigit
non digit match, "\D"
NonWord
non word match, "\W"
NonWhitespace
non whitespace match, "\S"
Boundary
boundary match, "\b"
AsciiLetter
ascii letters match, "[A-Za-z]"
AsciiNonLetter
ascii non letters match, "[^A-Za-z]"
AsciiUppercase
ascii uppercase letters match, "[A-Z]"
AsciiNonUppercase
ascii non uppercase letters match, "[^A-Z]"
AsciiLowercase
ascii lowercase letters match, "[a-z]"
AsciiNonLowercase
ascii non lowercase letters match, "[^a-z]"
AsciiAlphanumeric
ascii alphanumerics chars match, "[A-Za-z0-9]"
AsciiNonAlphanumeric
ascii non alphanumerics chars match, "[^A-Za-z0-9]"
AsciiNumeric
ascii numeric match, "[0-9]"
AsciiNonNumeric
ascii non numeric match, "[^0-9]"
Hexadecimal
hexadecimal match, "[0-9A-Fa-f]"
NonHexadecimal
non hexadecimal match, "[^0-9A-Fa-f]"
Anything
anything match, ".*?"
Everything
everything match, ".*"
SomethingGreedy
something match, greedy, ".+"
Something
something match, ".+?"
AnyChar
any char match, "."
Period
escaped period, "\."
Caret
escaped caret, "\^"
Dollar
escaped dollar, "\$"
Asterisk
escaped asterisk, "\*"
PlusSign
escaped plus sign, "\+"
MinusSign
escaped minus sign, "\-"
QuestionMark
escaped question mark, "\?"
OpenBrace
escaped open brace, "\{"
CloseBrace
escaped close brace, "\}"
OpenBracket
escaped open bracket, "\["
CloseBracket
escaped close bracket, "\]"
OpenParenthesis
escaped open parenthesis, "\("
CloseParenthesis
escaped close bracket, "\)"
BackSlash
escaped back slash, "\\"
Pipe
escaped pipe, "\|"
Newline
escaped new line, "\n"
Tab
escaped tab, "\t"
Quote
escaped quote, "\'"
DoubleQuote
escaped double quote, "\""
Raw(&'a str)
raw regex exp, "exp"
String(String)
raw regex exp (owned), "exp"
Concat(Concat<'a>)
concatenation of regex exp, "exp1exp2exp3"
, check solvers::Concat
Escape(Escape<'a>)
Special characters escape wrapper, check solvers::Escape
Group(Group<'a>)
Regex group, "(expr)"
, check solvers::Group
NamedGroup(NamedGroup<'a>)
named group match, "(?P<name>expr)"
, check solvers::NamedGroup
NonCaptureGroup(NonCaptureGroup<'a>)
non-capture group, "(?:expr)"
Optional(Optional<'a>)
optional match, "expr?"
, check solvers::Optional
Either(Either<'a>)
either match, "expr1|expr2|..."
, check solvers::Either
Exactly(Exactly<'a>)
exact number (n) of occurrences match, "expr{n}"
, check solvers::Exactly
Ranged(Ranged<'a>)
variance number (min, max) of occurrences match, "expr{min, max}"
, check solvers::Ranged
ZeroOrMore(ZeroOrMore<'a>)
zero or more occurrences match, "expr*"
, check solvers::ZeroOrMore
ZeroOrMoreLazy(ZeroOrMoreLazy<'a>)
zero or more occurrences, lazy match, "expr*?"
, , check solvers::ZeroOrMoreLazy
OneOrMore(OneOrMore<'a>)
one or more occurrences match, "expr+"
, check solvers::OneOrMore
OneOrMoreLazy(OneOrMoreLazy<'a>)
one or more occurrences, lazy match, "expr+?"
, , check solvers::OneOrMoreLazy
StartsWith(StartsWith<'a>)
match start, "^expr"
, check solvers::StartsWith
EndsWith(EndsWith<'a>)
match end, "expr$"
, check solvers::EndsWith
StartsAndEndsWith(StartsAndEndsWith<'a>)
match start and end, "^expr$"
, check solvers::StartsAndEndsWith
Chars(Chars)
match characters, "[chars]"
, check solvers::Chars
NotChars(NotChars)
exclude match characters, "[^chars]"
, check solvers::NotChars
Implementations§
Trait Implementations§
Source§impl<'a> Add for ReadableRe<'a>
impl<'a> Add for ReadableRe<'a>
Source§impl<'a> Clone for ReadableRe<'a>
impl<'a> Clone for ReadableRe<'a>
Source§fn clone(&self) -> ReadableRe<'a>
fn clone(&self) -> ReadableRe<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more