Answers for "how to switching uppercase to lower cases and lower cases to uppercase with regex 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

regex for lowercase letters js

function hasLowerCase(str) {
    return (/[a-z]/.test(str));
}
Posted by: Guest on July-22-2020

Code answers related to "how to switching uppercase to lower cases and lower cases to uppercase with regex javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language