Regular Expression

Results 1 to 2 of 2

Thread: Regular Expression

  1. #1
    Conrad Guest

    Default Regular Expression

    What might I be doing wrong with the following:<BR><BR>This code:<BR>obj_regexp1.Pattern = "stockquote?symbols= "(.*)\"&#062;(.*)&#060;/TR&#062;"<BR><BR>Producess this error:<BR><BR>Error Type:<BR>Microsoft VBScript compilation (0x800A03F2)<BR>Expected identifier<BR>/asptear/get_most_actives.asp, line 62, column 47<BR>obj_regexp1.Pattern = "stockquote?symbols= "(.*)\"&#062;(.*)&#060;/TR&#062;"<BR>----------------------------------------------^<BR><BR><BR>Any help would be greatly appreciated.<BR>

  2. #2
    Steve M Guest

    Default RE: Regular Expression

    Pasting the error into a fixed-font window, it&#039s complaining about the double-quote character after the = sign. You need to escape this character with a backslash, or you could remove it since there already is an escaped double-quote in the pattern string. Hope that helped.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts