PDA

View Full Version : error on line 56!! can someone help me with this..


nutz00
09-02-2002, 07:49 PM
hi all, my problem is when people go to my guestbook here:
http://www.xtreme-muscle.com/ssgbook/gbook.asp

and they click sign guestbook, then they fill out everything and and sign it, this error comes up!! i dont know what it means i dont know any ASP maybe someone can help me thanks so much.

i attached the file to this post.


Microsoft VBScript runtime error '800a139a'

Unexpected quantifier

/ssgbook/config.asp, line 56

whammy
09-03-2002, 10:35 AM
The problem is this line (line 53):

objRegExp.Pattern = "<(.|\n)+?>"

You can't have a ? immediately after a + in a regular expression.

Besides, that function makes no sense at all, because ASP already has a built-in function to change HTML tags (i.e. < to &lt; and > to &gt;) - it's called Server.HTMLEncode() :D

nutz00
09-03-2002, 11:57 PM
Originally posted by whammy
The problem is this line (line 53):

objRegExp.Pattern = "<(.|\n)+?>"

You can't have a ? immediately after a + in a regular expression.

Besides, that function makes no sense at all, because ASP already has a built-in function to change HTML tags (i.e. < to &lt; and > to &gt;) - it's called Server.HTMLEncode() :D

ok so what can i do then? can u fix this for me please man i dont know any ASP lol