RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 3
Title Test Details 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
Title Test Details Java class name (local)
Expression
^(([a-zA-Z][a-zA-Z_$0-9]*(\.[a-zA-Z][a-zA-Z_$0-9]*)*)\.)?([a-zA-Z][a-zA-Z_$0-9]*)$
Description
Regular Expression for validating fully qualified Java Class Names that follows the Java Naming Conventions for local classes (see: http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.8). Group 2 gives the package name, group 4 gives the class name.
Matches
Bar | f.B1 | fo_$1.bar.Foo.bar
Non-Matches
1Bar | foo-.Bar | foo/Bar
Author Rating: Not yet rated. Attila Varga
Title Test Details Hungarian phone number
Expression
^(\+?36)?[ -]?(\d{1,2}|(\(\d{1,2}\)))/?([ -]?\d){6,7}$
Description
Regex for validating format of Hungarian phone numbers.
Matches
+3611234567 | +3676123456 | +36301234567 | +36 1 1234567 | +36 76 123456 +36 30 1234567 | +36(1)1234567 | +36(76)123456 | +36(30)1234567 | 1/123-4567 | 76/123-456 | 30/123-45-67
Non-Matches
+0011234567
Author Rating: The rating for this expression. Attila Varga
   Displaying page 1 of 1 pages; Items 1 to 3

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials