I haven\'t used regular expressions at all, so I\'m having difficulty troubleshooting. I want the regex to match only when the contained string is all numbers; but with the
Another way: If you like to match international numbers such as Persian or Arabic, so you can use following expression:
Regex = new Regex(@"^[\p{N}]+$");
To match literal period character use:
Regex = new Regex(@"^[\p{N}\.]+$");