Ruchi yadav Ruchi yadav - 3 months ago 12x
Javascript Question

Regular expression for alphanumeric in Angularjs

I want a regex for alphanumeric characters in angularJS, I've tried some regex like "(\d[a-z])" but they allow me to enter only number as well as only alphabets. But I want a regex which won't allow me to enter them.

121232, abchfe, abd()*, 42232^5$ are some example of invalid input.
12fUgdf, dGgs1s23 are some valid inputs.


This one requires atleast one of each (a-z, A-Z and 0-9):