Answers for "alphanumeric with space regex"

1

how to get only alphanumeric and whitespace in string regex

/[A-Za-z\d\s]/g
Posted by: Guest on March-06-2021
0

alphanumeric with space regex

var regex = new RegExp("^[A-Za-z0-9? ,_-]+$");
            var key = String.fromCharCode(event.charCode ? event.which : event.charCode);
            if (!regex.test(key)) {
                event.preventDefault();
                return false;
            }
Posted by: Guest on June-21-2021
0

alphanumeric with space regex

def isAlphaNumericStr(text):
   if(re.match("^[A-Za-z0-9 -]+$", text) != None):
     return True

   root.bell()
   return False
 
 #TO ACTIVATE ON FIELD
 txtCustomerName.configure(validate="key", validatecommand = (txtCustomerName.register(isAlphaNumericStr),'%P'))
Posted by: Guest on July-27-2021
0

javascript check alpha and space only

Emerald j
Posted by: Guest on November-21-2020

Code answers related to "alphanumeric with space regex"

Browse Popular Code Answers by Language