weaponregex.mutator

Members list

Concise view

Type members

Classlikes

object BOL2BOI extends TokenMutator

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
class Object
trait Matchable
class Any
Self type
BOL2BOI.type
object BOLRemoval extends TokenMutator

Remove beginning of line character ^

Remove beginning of line character ^

''Mutation level(s):'' 1, 2, 3

Attributes

Example:

^aa

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

The object that manages all built-in token mutators

The object that manages all built-in token mutators

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self 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
class Object
trait Matchable
class Any
Self 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
class Object
trait Matchable
class Any
Self type

Negate character class

Negate character class

''Mutation level(s):'' 1

Attributes

Example:

[abc][^abc]

Graph
Supertypes
class Object
trait Matchable
class Any
Self 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
class Object
trait Matchable
class Any
Self type
object EOL2EOI extends TokenMutator

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
class Object
trait Matchable
class Any
Self type
EOL2EOI.type
object EOLRemoval extends TokenMutator

Remove end of line character $

Remove end of line character $

''Mutation level(s):'' 1, 2, 3

Attributes

Example:

a$a

Graph
Supertypes
class Object
trait Matchable
class Any
Self 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
class Object
trait Matchable
class Any
Self type

Negate lookaround (lookahead, lookbehind) constructs

Negate lookaround (lookahead, lookbehind) constructs

''Mutation level(s):'' 1, 2, 3

Attributes

Example:

(?=abc)(?!abc)

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Negate POSIX character class

Negate POSIX character class

''Mutation level(s):'' 1

Attributes

Example:

\p{Alpha}\P{Alpha}

Graph
Supertypes
class Object
trait Matchable
class Any
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
class Object
trait Matchable
class Any
Self type

Negate predefined character class

Negate predefined character class

''Mutation level(s):'' 1

Attributes

Example:

\d\D

Graph
Supertypes
class Object
trait Matchable
class Any
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:

\dd

Graph
Supertypes
class Object
trait Matchable
class Any
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
class Object
trait Matchable
class Any
Self 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
class Object
trait Matchable
class Any
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
class Object
trait Matchable
class Any
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
class Object
trait Matchable
class Any
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
class Object
trait Matchable
class Any
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
class Object
trait Matchable
class Any
Self type

Change quantifier *, + to {n}

Change quantifier *, + to {n}

''Mutation level(s):'' 2, 3

Attributes

Example:

a*a{0}

Graph
Supertypes
class Object
trait Matchable
class Any
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
class Object
trait Matchable
class Any
Self type