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 2
Title Test Details Disallow Special Characters in string
Expression
^[a-zA-Z0-9]+(([_][a-zA-Z0-9])?[a-zA-Z0-9]*)*$
Description
This Regular Expression. I have used with ASP.NET Regular expression for validating that input string should not have special characters(e.g. $,#,@ etc.]
Matches
Employee | Employee_Test | Employee_Dept
Non-Matches
Employee.Test | Employee$Test | Employee@Test
Author Rating: Not yet rated. Kiran Patil
Title Test Details yyyy-mm-dd hh:mm
Expression
^((\d{2}(([02468][048])|([13579][26]))[-]?((((0?[13578])|(1[02]))[-]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[-]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[-]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[-]?((((0?[13578])|(1[02]))[-]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[-]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[-]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\s((([0-1]?[0-9])|([2][0-3]))\:([0-5][0-9])))?$
Description
This expression will validate date format to be yyyy-mm-dd hh:mm.
Matches
2009-12-30 00:00 | 2009-02-30 00:00 | 2009-12-30 12:00
Non-Matches
2009 10 10 23:59 | 2009-10-10 25:50 | 2009 10 10 23:59
Author Rating: Not yet rated. Kiran Patil
   Displaying page 1 of 1 pages; Items 1 to 2

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