Reputation: 165
I'm trying to evaluate a string through regex with the following rules: The string has exactly 5 characters, being the first n whitespaces and the last 5-n (at least 1) numbers.
(\s*\d{1,5})
works, but also matches " 12345"
, which is very outside of the rules.
Any idea?
Upvotes: 2
Views: 53