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 1
Title Test Details Pattern Title
Expression
^\d* \d*\/{1}\d*$|^\d*$
Description
This expression is used to validate fractions (entered as strings). It will also accept non-fractional entries. Simple, but effective.
Matches
100 | 1 1/2 | 1232 5/8
Non-Matches
a 1/2 | abc | a b/c
Author Rating: Not yet rated. Kevin Hillabolt
   Displaying page 1 of 1 pages; Items 1 to 1

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