regex accept letters and numbers and capital letter in a word + javascript code example
Example: regex only uppercase letters js
if (value.match(/^[A-Z]*$/)) {
// matches
} else {
// doesn't match
}
if (value.match(/^[A-Z]*$/)) {
// matches
} else {
// doesn't match
}