I have the following ASP/VBScript function that returns true if the given string contains alpha numeric characters or an underscore.
Dim re, IsAlphaNumeric
Set re = New RegExp
re.Pattern = "^\w*$"
IsAlphaNumeric = re.Test(TheString)
Set re = Nothing
StringIsAlphaNumeric = IsAlphaNumeric
I would like to extend the regular expression so it also allows accented characters such as áéíóúÁÉÍÓÚ etc.
Currently this function returns false if I pass the following value:
What I do know is that I would like to allow the unicode range u00C8 to u00D6 but I do not know how to add this to the current regular expression.