Displaying page
of
pages;
Items to
Title |
Test
Details
Multiples of 3
|
Expression |
([0369]*([147][0369]*([147][0369]*[258])*[0369]*[147][0369]*([258][0369]*[147])*[0369]*[0369]*([258][0369]*[147])*[0369]*[147]|[258][0369]*([258][0369]*[147])*[0369]*[258][0369]*([147][0369]*[258])*[0369]*[0369]*([147][0369]*[258])*[0369]*[258]|[147][0369]*([147][0369]*[258])*[0369]*[258]|[258][0369]*([258][0369]*[147])*[0369]*[147])*[0369]*)*
|
Description |
Matches any sequence of decimal digits that represent a positive denary multiple of three.
|
Matches |
0 | 3 | 12 | 129762
|
Non-Matches |
1 | 2 | 129761
|
Author |
Rating:
Not yet rated.
Michael Dumas
|
Title |
Test
Details
Digit-grouped numbers
|
Expression |
[+-]?(0|[1-9]([0-9]{0,2})(,[0-9]{3})*)(\.[0-9]+)?
|
Description |
Matches any positive or negative number, with or without decimal places, where the digits are grouped in threes seperated by commas.
|
Matches |
0 | 1 | -999 | +1,001 | 1,234,567.0
|
Non-Matches |
alpha | 0xFF | 1,2,345,678 | 1,234.
|
Author |
Rating:
Not yet rated.
Michael Dumas
|
Title |
Test
Details
Scientific Notation
|
Expression |
[+-]?\d(\.\d+)?[Ee][+-]?\d+
|
Description |
Matches a number using normalised scientific 'E' notation
|
Matches |
-1.23E99 | 1E0 | -9.999e-999
|
Non-Matches |
+10E0 | 2.3e5.4
|
Author |
Rating:
Michael Dumas
|
Title |
Test
Details
2-7 character palindrome words
|
Expression |
(\w)(\w)?(\w)?\w?(?(3)\3)(?(2)\2)\1
|
Description |
Matches any palindromic word of between 2 and 7 characters length. Best to use without case-sensitivity as "Noon" would not match otherwise because of the capitalisation.
|
Matches |
aa | did | peep | minim | hallah | racecar
|
Non-Matches |
a | Anna | detartrated
|
Author |
Rating:
Not yet rated.
Michael Dumas
|
Title |
Test
Details
Trailing whitespace
|
Expression |
[ \t]+$
|
Description |
Use in Java programming code to find trailing spaces (a checkstyle warning). Replace All with the empty string to remove them.
|
Matches |
int i = 0; | shutUp();
|
Non-Matches |
// a perfect comment...
|
Author |
Rating:
Not yet rated.
Michael Dumas
|
Title |
Test
Details
Unicode non-characters
|
Expression |
[\uFDD0-\uFDEF]
|
Description |
Matches any of the 66 unicode non-characters (guaranteed never to be used for encoding characters). Could be useful for checking if a document is text-renderable.
|
Matches |
(obviously this one is impossible to exemplify...)
|
Non-Matches |
ず
|
Author |
Rating:
Not yet rated.
Michael Dumas
|
Displaying page
of
pages;
Items to