Quantcast
Channel: CodeProject Latest postings for Regular Expressions
Viewing all articles
Browse latest Browse all 224

Matching Floating Point Numbers Range with a Regular Expression

$
0
0
I have to check the user input in some input fields for a float value range with Regex.

Here are my two float value ranges for which I have not yet found a solution:

```
Case 1. (ui >= 0.0001) & (ui <= 10000.0000)
example ok: 0.0001, 10000.0000
example fail: 0.0000, 10000.0001

Case 2. (ui >= 0.0000) & (ui <= 65536.0000)
example ok: 0.0000, 65536.0000
example fail: -0.0001, 65536.0001

I have been working on a solution for this for a long time. Unfortunately without success so far. I would be very happy if someone could help me.

Viewing all articles
Browse latest Browse all 224

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>