johnj
08-06-2007, 01:35 PM
i have this statement
chkNamePattern=/^((?!.*(www|http|\\|\/|@|\.[a-zA-Z]+))([а-яА-ЯA-Za-z\-\.,])+?(\s*)([а-яА-ЯA-Za-z0-9_\.\-,])*)+$/ig;
but error
Microsoft JScript ошибка '800a139a'
n=/^((?!.*(www|http|\\|\/|@|\.[a-zA-Z]+))([A-Za-z\-\.,])+?(\s*)([A-Za-z0
------^
-9_\.\-,])*)+$/ig;
has been occured
the problem is in sign ?
i dont know why ? its additional regexp syntax
on my own DEV environment (w 2003 sp1) all is ok
by on company's DEV ENV ( w 2000 sp3) i have got error
miranda
08-06-2007, 06:30 PM
Since this is giving you a server side error doesn't your regex need to be in quotes?
chkNamePattern="/^((?!.*(www|http|\\|\/|@|\.[a-zA-Z]+))([а-яА-ЯA-Za-z\-\.,])+?(\s*)([а-яА-ЯA-Za-z0-9_\.\-,])*)+$/ig";
johnj
08-07-2007, 08:54 AM
no .. according to msdn regexp needn't to be in quotes
it looks like i have found whats a problem
on company's DEV only sp3 for w2k was installed
admins has already been asked to setup sp4 and if it doesn't check problem
they will install this : "Windows Script 5.6 for Windows XP and Windows 2000 "
i hope it checks my problem
thanks
javabits
08-07-2007, 08:46 PM
That actually sense. regex in vbscript was added as of version 5 I believe. You would normally have a version of vbscript that supports regex if IE 5.0 was installed (most likely it wasn't).
You can check the VBScript version by using the following asp page.
<%
Response.Write "You are using "
Response.Write ScriptEngine
Response.Write " version " & ScriptEngineMajorVersion & "." & ScriptEngineMinorVersion
%>
semper fi..
miranda
08-08-2007, 02:04 AM
By the error he posted though it looks like his code is in JScript
javabits
08-16-2007, 09:35 PM
I think both VBScript and JScript share code (both coming from Microsoft). Basically there are two ways you get JScript/VBScript installed on a Windows computer, either install Internet Explorer or install Windows Script Host.
The wiki entry for JScript goes into which version installs what
http://en.wikipedia.org/wiki/Jscript
semper fi...