Loading ...
Sorry, an error occurred while loading the content.

Re: regexp help Please!!

Expand Messages
  • frank visser
    hi joe, we now solved this by: simplifying the regex to: Javascript=javascript:[_a-zA-Z0-9]+ * ( *[ ]([^ ]+)[ ] - adding a . to the regex - adding a :
    Message 1 of 2 , Feb 18, 2008
    • 0 Attachment
      hi joe,

      we now solved this by:

      simplifying the regex to:

      Javascript=javascript:[_a-zA-Z0-9]+ *\( *['"]([^'"]+)['"]

      - adding a "." to the regex
      - adding a ":" to the regex (for the case you mention below).

      so we get:
      Javascript=javascript:[_a-zA-Z0-9.:]+ *\( *['"]([^'"]+)['"]

      this will resolve the function name "BOTTOM_HALF:window.open".

      the issue with the ../.. is more problematic.

      Xenu can resolve these without any problem but your pages also
      contain a javascript that adds ../.. when it is not present in the
      URL (your first example), and xenu cannot handle that.

      a browser can process this javascript but xenu can't.

      frank


      --- In xenu-usergroup@yahoogroups.com, "Joe Groover"
      <thegroovers00@...> wrote:
      >
      > Can someone out there please help me with this??
      > I'm pulling my hair out over something I'm sure is simple.
      >
      > I have two different kinds of javascripts:
      >
      > javascript:BOTTOM_HALF:window.open('/4/12/1313.html
      >
      > and
      >
      > javascript:TOP_HALF:window.open('../../4/12/1313.html
      >
      > I can't figure out a regexp that will decipher both of these.
      >
      > Please help!!
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.