01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.common.utils.misc;
09:
10: //base classes
11:
12: //project specific classes
13:
14: //other classes
15:
16: public final class CommonExpressions {
17:
18: //
19: public final static String POSITIVE_INTEGER = "[0-9]*[1-9][0-9]*";
20: public final static String NON_NEGATIVE_INTEGER = "[0-9]+";
21: public final static String INTEGER = "[0-9]+";
22: public final static String JAVA_NAME = "[a-zA-Z][a-zA-Z0-9]*";
23: public final static String DECIMAL = "[-+]?\\d+(\\.\\d+)?";
24: public final static String SINGLE_CHARACTER = ".";
25: public final static String ANY_STRING = ".*";
26:
27: private CommonExpressions() {
28: }
29: }
|