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
^[0-9]*\/{1}[1-9]{1}[0-9]*$
Description
This regular expression checks if the given string is a fraction. This does not allow 0 either in the numerator or the denominator.
Matches
1/2 | 12/325
Non-Matches
-1/2 | 2se/4rf
Author Rating: The rating for this expression. Bharath N
   Displaying page 1 of 1 pages; Items 1 to 1

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