regex for number and letters

JavaScript
let regex = /[^A-Za-z0-9]+/
Source

Also in JavaScript: