Answers for "regex for group of capital letters javascript"

0

regex only uppercase letters js

if (value.match(/^[A-Z]*$/)) {
    // matches
} else {
    // doesn't match
}
Posted by: Guest on October-28-2020
0

how to regexp replace with uppercase on specific capture group in js

a.replace(/xxx(yyy)zzz/, (match, p1) => p1.toUpperCase()
Posted by: Guest on October-22-2021

Code answers related to "regex for group of capital letters javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language