Add regex to match numbers (integers and decimals)

This commit is contained in:
Adam Wojszczyk
2015-11-02 11:38:58 +01:00
parent 7a852e1e33
commit 5f42368810

View File

@@ -20,6 +20,10 @@ class RegexPatterns {
return ONLY_ALPHA_UNICODE.pattern()
}
String number() {
return NUMBER.pattern()
}
String anyBoolean() {
return TRUE_OR_FALSE.pattern()
}
@@ -39,8 +43,4 @@ class RegexPatterns {
String url() {
return URL.pattern()
}
String number() {
return NUMBER.pattern()
}
}