regex for numbers in a string code example
Example 1: regex for number and letters
let regex = /[^A-Za-z0-9]+/
Example 2: regex for numbers
Regex regex = new Regex(@"^\d$");
let regex = /[^A-Za-z0-9]+/
Regex regex = new Regex(@"^\d$");