|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
VbScript, RegExp giving error.....
<i><b>Originally posted by : SreeRam (vsrcmurthy@hotmail.com)</b></i><br />Hi, I just moved an ASP application from development to production and the Regexp object doesn't work anymore.<br />The Lines I'm talking about looks like this:<br /><br />Function ReplaceText(searchStr, replStr, inStr)<br />Dim regEx <br />Set regEx = New RegExp <br />regEx.Pattern = searchStr<br />regEx.IgnoreCase = True <br />ReplaceText = regEx.Replace(inStr, replStr) <br />End Function<br /><br />I'm getting a syntax error on this line: Set regEx = New RegExp. It doesn't like the New keyword. <br />This has been working fine for weeks on the test server but now it doesn't.<br /><br />Any help will be greatly appreciated, thanks.<br /><br /><br /><br /><br /><br /><br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : Test 2 delete this sorry (test@testers.com)</b></i><br />Test don't read<br /><br /><br />------------<br />SreeRam at 4/21/2000 2:34:15 PM<br /><br />Hi, I just moved an ASP application from development to production and the Regexp object doesn't work anymore.<br />The Lines I'm talking about looks like this:<br /><br />Function ReplaceText(searchStr, replStr, inStr)<br />Dim regEx <br />Set regEx = New RegExp <br />regEx.Pattern = searchStr<br />regEx.IgnoreCase = True <br />ReplaceText = regEx.Replace(inStr, replStr) <br />End Function<br /><br />I'm getting a syntax error on this line: Set regEx = New RegExp. It doesn't like the New keyword. <br />This has been working fine for weeks on the test server but now it doesn't.<br /><br />Any help will be greatly appreciated, thanks.<br /><br /><br /><br /><br /><br /><br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > VbScript, RegExp giving error..... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|