Java Regular Expressions Cheat Sheet
Java Regular Expressions Cheat Sheet
awesom
Regex cheat sheet vis it rebe e cheat s heets
ll abs.org!
. Any character. boolean matches(String regex) X{n} X{n}? X{n}+ X, exactly n times.
\d A digit: [0-9] Tells whether or not this string matches the given
\D A non-digit: [^0-9] regular expression.
\s A whitespace character: [ \t\n\x0B\f\r] X{n,} X{n,}? X{n,}+ X, at least n times.
\S A non-whitespace character: [^\s] String[] split(CharSequence input)
\w A word character: [a-zA-Z_0-9] Splits the given input sequence around matches of X, at least n but
X{n,m} X{n,m}? X{n,m}+
\W A non-word character: [^\w] this pattern. not more than m times.