regex all letters and numbers any length code example Example: regex for number and letters let regex = /[^A-Za-z0-9]+/