I am trying to validate string which can take only alphanumeric values without space.
str.replace(/[^a-zA-Z0-9\u00E0-\u00FC ]+/gi, '')
I used above code but seems still it is taking white space. Did not able to find the right way to fix it.
I am trying to validate string which can take only alphanumeric values without space.
str.replace(/[^a-zA-Z0-9\u00E0-\u00FC ]+/gi, '')
I used above code but seems still it is taking white space. Did not able to find the right way to fix it.