Validating special characters

Posted by / 14-Feb-2021 20:53

The following is how regular expressions can be used [abc] – find any character in the brackets a, b or c [a-z] – find the range of characters within brackets i.e. Can also be used with numbers [0-9] [^xyz] – find any character other than the ones specified in the brackets i.e.

x,y and z (word) – find the “word” specified in the round brackets [abc|xyz] – find either the characters a,b,c or x,y,z We’ll start first with validating a textbox that accepts only numbers.

; microsoft.support = microsoft.support validating special characters-27validating special characters-17validating special characters-61

So the condition is we check whether the textbox contains anything ELSE other than numbers and display a message As you can see the function validate() checks if the entered string contains characters that does NOT (notice the ^ symbol) match the numbers 0 to 9 including white spaces and special characters.

One thought on “validating special characters”

  1. There are hundreds of hookup, dating websites out there which are paid based on monthly subscription. Once again we have to repeat it again "safety should be your first priority" in an online relationship, we have no idea who gonna show up as your sex partner.