Published
- 1 min read
regex only uppercase letters js
The solution for this is noted below
regex only uppercase letters js
Solution
if (value.match(/^[A-Z]*$/)) {
// matches
} else {
// doesn't match
}
Try other methods by searching on the site. That is if this doesn’t work