regax regular expression for +ve numbers code example Example: regex for numbers Regex regex = new Regex(@"^\d$");