Title |
Test
Find
Java class name (global)
|
Expression |
^([a-z]{2,3}(\.[a-zA-Z][a-zA-Z_$0-9]*)*)\.([A-Z][a-zA-Z_$0-9]*)$ |
Description |
Regular Expression for validating fully qualified Java Class Names that follows the Java Naming Conventions for widely available classes (see: http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.8).
Group 1 gives the package name, group 3 gives the class name. |
Matches |
foo.Bar | foo.bar.IFBar1 | wo.w_1.Ffo$o.Bar |
Non-Matches |
Bar | Foo.Bar | foo.bar | foo/Bar | fooo.Bar |
Author |
Rating:
Not yet rated.
Attila Varga
|
Source |
|
Your Rating |
|