Linked Questions

467 votes
18 answers
1.1m views

I have a page with a textbox where a user is supposed to enter a 24 character (letters and numbers, case insensitive) registration code. I used maxlength to limit the user to entering 24 characters. ...
Vivian River's user avatar
  • 32.6k
344 votes
23 answers
639k views

I need to find a reg ex that only allows alphanumeric. So far, everyone I try only works if the string is alphanumeric, meaning contains both a letter and a number. I just want one what would allow ...
User's user avatar
  • 3,802
119 votes
9 answers
145k views

I want to convert a string of that is in camel case to snake case using TypeScript. Remember that the "snake case" refers to the format style in which each space is replaced by an underscore ...
Badrul's user avatar
  • 1,179
4 votes
3 answers
21k views

Below is my javascript code which allows only alphabets while entering if we enter numbers and some special characters it does not accept them while entering only this works fine but this javascript ...
user avatar
5 votes
5 answers
5k views

I am trying to order this array in Javascript arr = ["ax", "mof", "4", "63", "42", "3", "10", "[", "23", "adidas", "ba", ")", "ABC"]; And i want that the array is showed like this: ["3", "4", "10", ...
J1293's user avatar
  • 71
-1 votes
2 answers
2k views

I have an input field. I want to restrict user from entering special characters. Only alphanumeric values are allowed. I have implemented below code but when any special characters is pressed it is ...
neelam's user avatar
  • 151
-1 votes
1 answer
801 views

I am trying to check only alphabet in textbox(like XYZ) and any alphanumeric or special character value not entered. But my function only check numeric value and one more condition applied, if i pass ...
S. S. Rawat's user avatar
  • 6,141
-3 votes
1 answer
846 views

Is there any way to check if the first character in the field is an alpha char in Jquery?
EA Employee's user avatar
-1 votes
3 answers
1k views

My application is in Arabic and English. Its a hybrid application (html/css/jquery/android). we have one text field in one page and it should take input only alphanumeric (i.e., abc123). i want to ...
Gaurab Kumar's user avatar
  • 2,184
0 votes
0 answers
437 views

I have an input field that takes in an email or phone number. I want to apply UI mask only if phone number is entered but not when alphabets are entered. How can this be achieved?
neuronic's user avatar
3 votes
2 answers
203 views

During an technical interview, I was asked to implement a basic palindrome function that excludes non-alphanumeric characters in Javascript (e.g. "A man, a plan, a canal, Panama."). The code that I ...
s.z.r.harrison's user avatar
-2 votes
2 answers
317 views

Currently it validates to true(passes the test) even if username contains just text, or just number characters alone. I want the validation to only be true(Passed) if and only if the username contains ...
kereeee's user avatar