T
Tony
Hello!
How do I write a regular expression that should have a pattern that except
the following format.
4
3.3
4.15
12
13.5
14.32
So valid format are either
1. One numeric figure as 4 above
2. One numeric figure and a decimal figure as 3.3 above
3. One numeric figure and two decimal figure as 4.15 above
4. Two numeric figure as 12 above
5. Two numeric figure and one decimal figure as 13.5 above
6. Two numeric figure and two decimal figure as 14.32 above
So how should the regular expression look like to accomplish this.
//Tony
How do I write a regular expression that should have a pattern that except
the following format.
4
3.3
4.15
12
13.5
14.32
So valid format are either
1. One numeric figure as 4 above
2. One numeric figure and a decimal figure as 3.3 above
3. One numeric figure and two decimal figure as 4.15 above
4. Two numeric figure as 12 above
5. Two numeric figure and one decimal figure as 13.5 above
6. Two numeric figure and two decimal figure as 14.32 above
So how should the regular expression look like to accomplish this.
//Tony