Title |
Test
Find
Fractions / Fractional Odds
|
Expression |
^\d+\/?\d*$ |
Description |
This simple expression is used to validate fractions or UK odds.
It will match integers, allowing 10/1 to be entered as 10, and fractions.
It will not match negative numbers or fractions, spaces or any alphabetical characters. |
Matches |
10 | 2/3 | 100/30 |
Non-Matches |
-10 | -2/3 | text | 10 / 1 | 42/7eok |
Author |
Rating:
Not yet rated.
Paul Verhulpen
|
Source |
|
Your Rating |
|
Title: 0/0 is allowed
Name: John Joseph
Date: 7/22/2014 2:53:25 PM
Comment:
0/0 isallowed