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 Duration
Expression
([0-9]+)\s(d)\s(([0-1][0-9])|([2][0-3])):([0-5][0-9]):([0-5][0-9])
Description
Displays duration in 1 d 22:33:44 format. Can be modified to match some other formats e.g. 1.22:33:44 if needed. Takes a 24-hour day into account.
Matches
1 d 22:33:44 | 109 d 11:02:00 | 0 d 00:00:00
Non-Matches
d 22:33:44 | 1 d 24:00:00 | 3 d 11:75:00
Author Rating: The rating for this expression. Kristijan Prikratki
Title Test Details DTMF
Expression
^[0-9#\*abcdABCD]+$
Description
Tests expression for DTMF combinations (numbers 0-9, asterisk, octothorpe and A,B,C,D or a,b,c,d). Does not limit number of occurrences or their order.
Matches
*AB132# | 12#AB*3 | *c3d42a##
Non-Matches
r13 | #bCz31* | *%#
Author Rating: The rating for this expression. Kristijan Prikratki
Title Test Details CSV - Numbers
Expression
^[0-9]+(,[0-9]+)*$
Description
Parses comma-separated numbers. Doesn't allow spaces inbetween numbers and/or between numbers and commas. Allows single number to be added. Doesn't allow sequence to end with a comma.
Matches
1321 | 1321,0,42412 | 0,1,2,3,4
Non-Matches
1321,,42412 | 12c,13d,23 | 445, | 412 , 421, 4122 | 42 4,41
Author Rating: The rating for this expression. Kristijan Prikratki
   Displaying page 1 of 1 pages; Items 1 to 3

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