(?<name>x), (x)
Begin a group
Optionalname: string
the group name
Clear the content
if keep the definitions
xy
Define a variable
the variable name
the variable expression
(xy)
Define a variable for group operation
the variable name
the variable expression
x(?=y)
Define a lookahead variable
the variable name
the variable expression
the followed by expression
Optionaloptions: RegExpOptions
the build options
(?<=y)x
Define a lookbehind variable
the variable name
the variable expression
the preceded by expression
Optionaloptions: RegExpOptions
the build options
x(?!y)
Define a negated lookahead variable
the variable name
the variable expression
the not followed by expression
Optionaloptions: RegExpOptions
the build options
(?<!y)x
Define a negated lookbehind variable
the variable name
the variable expression
the not preceded by expression
Optionaloptions: RegExpOptions
the build options
[^xy]
Define a variable for negated set
the variable name
the variable expression
x|y
Define a variable for or operation
the variable name
the variable expression
[xy]
Define a variable for set
the variable name
the variable expression
Enable match whole
)
End a group
x(?=y)
Append a lookahead expression
the variable expression
the followed by expression
Optionaloptions: RegExpOptions
the build options
(?<=y)x
Append a lookbehind expression
the variable expression
the preceded by expression
Optionaloptions: RegExpOptions
the build options
x(?!y)
Append a negated lookahead expression
the variable expression
the not followed by expression
Optionaloptions: RegExpOptions
the build options
(?<!y)x
Append a negated lookbehind expression.
the variable expression
the not preceded by expression
Optionaloptions: RegExpOptions
the build options
[^xy]
Append an expression for negated set
the expression
x|y
Append an expression for or operation
the expression
Stash the current expression as a variable.
the variable name
Get the build result
Optionalflags: string
flags
StaticencodeEncode a raw string to a regular expression string.
Following special characters will be encoded: ^\.()[]?+*|$
For set case, encoded characters: ^\-]
Rules:
^ only when it is the first char- only when it is not the first char and not the last char\] alwaysthe raw string
if for set [] operation
StaticnewCreate an instance of RegExpCoder
Regular Expression Coder
See
Regular Expressions