js regex for words with letters and numbers only code example Example: regex for number and letters let regex = /[^A-Za-z0-9]+/