weaponregex.mutator
Members list
Type members
Classlikes
Change beginning of line ^ to beginning of input \A
Change beginning of line ^ to beginning of input \A
''Mutation level(s):'' 2, 3
Attributes
- Example:
^a⟶\Aa- Graph
- Supertypes
- Self type
- BOL2BOI.type
Remove beginning of line character ^
Remove beginning of line character ^
''Mutation level(s):'' 1, 2, 3
Attributes
- Example:
^a⟶a- Graph
- Supertypes
- Self type
- BOLRemoval.type
The object that manages all built-in token mutators
The object that manages all built-in token mutators
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- BuiltinMutators.type
A wrapper class for weaponregex.mutator.BuiltinMutators for exporting to JavaScript
A wrapper class for weaponregex.mutator.BuiltinMutators for exporting to JavaScript
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- BuiltinMutatorsJS.type
Change character class to match any character [\w\W]
Change character class to match any character [\w\W]
''Mutation level(s):'' 2, 3
Attributes
- Example:
[abc]⟶[\w\W]- Graph
- Supertypes
- Self type
- CharClassAnyChar.type
Remove a child from character class
Remove a child from character class
''Mutation level(s):'' 2, 3
Attributes
- Example:
[abc]⟶[ab],[ac],[bc]- Graph
- Supertypes
- Self type
Negate character class
Negate character class
''Mutation level(s):'' 1
Attributes
- Example:
[abc]⟶[^abc]- Graph
- Supertypes
- Self type
- CharClassNegation.type
Modify the range inside the character class by increasing or decreasing once
Modify the range inside the character class by increasing or decreasing once
''Mutation level(s):'' 3
Attributes
- Example:
[b-y]⟶[a-y],[c-y],[b-x],[b-z]- Graph
- Supertypes
- Self type
Change end of line $ to end pf input \z
Change end of line $ to end pf input \z
''Mutation level(s):'' 2, 3
Attributes
- Example:
a$⟶a\z- Graph
- Supertypes
- Self type
- EOL2EOI.type
Remove end of line character $
Remove end of line character $
''Mutation level(s):'' 1, 2, 3
Attributes
- Example:
a$⟶a- Graph
- Supertypes
- Self type
- EOLRemoval.type
Modify capturing group to non-capturing group
Modify capturing group to non-capturing group
''Mutation level(s):'' 2, 3
Attributes
- Example:
(abc)⟶(?:abc)- Graph
- Supertypes
- Self type
- GroupToNCGroup.type
Negate lookaround (lookahead, lookbehind) constructs
Negate lookaround (lookahead, lookbehind) constructs
''Mutation level(s):'' 1, 2, 3
Attributes
- Example:
(?=abc)⟶(?!abc)- Graph
- Supertypes
- Self type
- LookaroundNegation.type
Negate POSIX character class
Negate POSIX character class
''Mutation level(s):'' 1
Attributes
- Example:
\p{Alpha}⟶\P{Alpha}- Graph
- Supertypes
- Self type
"Add the negation of that predefined character class to match any character [\\w\\W]"
"Add the negation of that predefined character class to match any character [\\w\\W]"
''Mutation level(s):'' 2, 3
Attributes
- Example:
\d⟶[\d\D]- Graph
- Supertypes
- Self type
Negate predefined character class
Negate predefined character class
''Mutation level(s):'' 1
Attributes
- Example:
\d⟶\D- Graph
- Supertypes
- Self type
Nullify a predefined character class by removing the \
Nullify a predefined character class by removing the \
''Mutation level(s):'' 2, 3
Attributes
- Example:
\d⟶d- Graph
- Supertypes
- Self type
Change quantifier {n} to {0,n}, and {n,}
Change quantifier {n} to {0,n}, and {n,}
''Mutation level(s):'' 2, 3
Attributes
- Example:
a{5}⟶a{0,5},a{5,}- Graph
- Supertypes
- Self type
- QuantifierNChange.type
Modify quantifier {n,m} to {n-1,m}, {n+1,m}, {n,m-1}, and {n,m+1}
Modify quantifier {n,m} to {n-1,m}, {n+1,m}, {n,m-1}, and {n,m+1}
''Mutation level(s):'' 2, 3
Attributes
- Example:
a{5,10}⟶a{4,10},a{6,10},a{5,9},a{5,11}- Graph
- Supertypes
- Self type
Change quantifier {n,} to {n}
Change quantifier {n,} to {n}
''Mutation level(s):'' 2, 3
Attributes
- Example:
a{5,}⟶a{5}- Graph
- Supertypes
- Self type
Modify quantifier {n,} to {n-1,}, and {n+1,}
Modify quantifier {n,} to {n-1,}, and {n+1,}
''Mutation level(s):'' 2, 3
Attributes
- Example:
a{5,}⟶a{4,},a{6,}- Graph
- Supertypes
- Self type
Add reluctant quantifier type to greedy quantifier
Add reluctant quantifier type to greedy quantifier
''Mutation level(s):'' 3
Attributes
- Example:
a+⟶a+?- Graph
- Supertypes
- Self type
Remove any type of quantifier including ?, *, +, and {n,m}
Remove any type of quantifier including ?, *, +, and {n,m}
''Mutation level(s):'' 1
Attributes
- Example:
a*⟶a- Graph
- Supertypes
- Self type
- QuantifierRemoval.type
Change quantifier *, + to {n}
Change quantifier *, + to {n}
''Mutation level(s):'' 2, 3
Attributes
- Example:
a*⟶a{0}- Graph
- Supertypes
- Self type
Modify quantifier ?, *, + to {n,}, or {n,m}
Modify quantifier ?, *, + to {n,}, or {n,m}
''Mutation level(s):'' 2, 3
Attributes
- Example:
a*⟶a{1,1},a{0,0},a{0,2}- Graph
- Supertypes
- Self type