include::../description.adoc[]

[source,java,diff-id=1,diff-type=noncompliant]
----
"[0-9]"        // Noncompliant - same as "\\d"
"[^0-9]"       // Noncompliant - same as "\\D"
"[A-Za-z0-9_]" // Noncompliant - same as "\\w"
"[\\w\\W]"     // Noncompliant - same as "."
"a{0,}"        // Noncompliant - same as "a*"
----

include::../fix.adoc[]

[source,java,diff-id=1,diff-type=compliant]
----
"\\d"
"\\D"
"\\w"
"."
"a*"
----

include::../implementation.adoc[]
