Your regular expression
/
/
Your test string
Match result
\b | Any word boundary character | . | Any single character | (a|b) | a or b |
\s | Any whitespace character([ \f\n\r\t\v]) | ^ | Start of line | a? | Zero or one of a |
\d | Any digit([0-9]) | $ | End of line | a* | Zero or more of a |
\D | Any non-digit([^0-9]) | [abc] | A single character | a+ | One or more of a |
\w | Any word character([A-Za-z0-9_]) | [^abc] | Any single character | a{3} | Exactly 3 of a |
\W | Any non-word character | [a-z] | Any single character in the range a-z | a{3,6} | Between 3 and 6 of a |