Menu
I need to find the position or existence of a “.” in a string.
I believe the “.” is a special character, therefore how would I search for a “.” in my string.
strFileName = new String(UploadForm.FileName.value)
regExp = “.”;
strExt = new String(Right(strFileName, 4))
result = strExt.search(regExp)
alert(strExt)
alert(result)
Note: The right(str, n) uses a function that mimics the behaviour of the same vbscript function.