telmessos
03-24-2010, 04:12 AM
Hi all,
I have the following function which removes the invalid chars on a string. It works really fine apart from removing the Turkish characters in the string such as İ,ı,ş,Ş,Ç,ç,Ğ,ğ,ü,Ü,Ö,ö .
Does anyone know a solution about this problem?
Thanks
telmessos
Here is the code:
Set objRegExp = New Regexp
Function makesafe(strInput)
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "[^A-Z^a-z^0-9\s]"
makesafe = objRegExp.Replace(strInput, "")
End Function
I have the following function which removes the invalid chars on a string. It works really fine apart from removing the Turkish characters in the string such as İ,ı,ş,Ş,Ç,ç,Ğ,ğ,ü,Ü,Ö,ö .
Does anyone know a solution about this problem?
Thanks
telmessos
Here is the code:
Set objRegExp = New Regexp
Function makesafe(strInput)
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "[^A-Z^a-z^0-9\s]"
makesafe = objRegExp.Replace(strInput, "")
End Function