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

RE: [xenu-usergroup] checking links in javascript - different regex results

Expand Messages
  • Frank Visser
    Hi eugeny, Tnx, no i am reading the powergrep stuff. Let me cut this discussion short: did you test your regex with xenu 1.2g beta? If I do, it keeps crashing,
    Message 1 of 35 , Oct 7, 2004
    • 0 Attachment
      Hi eugeny,

      Tnx, no i am reading the powergrep stuff.

      Let me cut this discussion short: did you test your regex with xenu 1.2g
      beta?

      If I do, it keeps crashing, whichever variation I use:

      Javascript=javascript:\w+\s*\(\s*['\"]((?:ftp|https?)://[^'\"]+?)['\"](?:\s*
      ,[^,]+?\s*)*\s*\);
      Javascript=javascript:\w+\s*\(\s*['"]((?:ftp|https?)://[^'"]+?)['\"](?:\s*,[
      ^,]+?\s*)*\s*\);
      Javascript=javascript:\w+\s*\(\s*['"]([^'"]+?)['"](?:\s*,[^,]+?\s*)*\s*\);
      Javascript=javascript:\w+\s*\(\s*['"]([^'"]+?)['"](?:\s*,[^,]+?\s*)*\s*\);
      Javascript=javascript:\w+\(['"]([^'"]+?)['"]\);
      Javascript=javascript:\w+\('([^']+?)'\);

      Did you succeed in getting Xenu to work with your original regex?

      Am I missing something here?

      Thanks for all support.

      frank

      -----Original Message-----
      From: Eugeny.Sattler@... [mailto:Eugeny.Sattler@...]
      Sent: donderdag 7 oktober 2004 9:59
      To: xenu-usergroup@yahoogroups.com
      Subject: [xenu-usergroup] checking links in javascript - different regex
      results


      >> why do you have an \ in ['\"] ?
      ['\"] is equal to ['"]


      >> - what does ?: mean? you use it twice, is that Perl?
      > "?" means the entity can happen once or not at all.
      > https? matches http and https.
      That is correct.
      But question mark followed by colon in a regex construct (?:something)
      has another meaning.

      (option1|option2) is alternation construct that matches either "option1" or
      "option2"
      and what it matched will be saved into a variable that can be acceced by
      application later.

      (?:option1|option2) is again alternation construct that matches either
      "option1" or "option2"
      but what it matches is not saved into any variable and can not be accessed
      later by mother application.

      In regex terminology (something_here) is called "capturing parenthesis"
      and (?:something_here) is called "non-capturing parenthesis".

      I guess you like me re-telling the manual from www.powergrep.com more than
      reading it in original.
      :-))
      Btw www.regular-expressions.info is also a great resource by the same
      author.

      Eugeny




      Yahoo! Groups Links
    • Tilman Hausherr
      Did anyone try to run Xenu with Sandboxie? Does it work? I m thinking about mentioning it on my web page so that paranoid people can use Xenu too :) Tilman
      Message 35 of 35 , Sep 18 11:30 AM
      • 0 Attachment
        Did anyone try to run Xenu with Sandboxie? Does it work? I'm thinking
        about mentioning it on my web page so that paranoid people can use Xenu
        too :)

        Tilman
      Your message has been successfully submitted and would be delivered to recipients shortly.