Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Regular expressions... drives me mad

Regular expressions... drives me mad

Scheduled Pinned Locked Moved Web Development
questioncomtoolshelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Philip Patrick
    wrote on last edited by
    #1

    Yeah, can't figure out how can I use it if I want so-called "non-greedy" expression, but with scripting version 5.0. See in version 5.5 you have a special qualifier "?" that gives you what you want, but version 5.0 (Win2k) doesn't have it. In my example I need to strip all ASP code from text, making "<%[\s\S]*%>" of course won't work if I have multiple occurances of ASP script in the page, I tried "<%[^(%>)]*%>" as well, but it takes parenthesses "()" as a characters... What can I use? Anyone can help? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

    Richard DeemingR 1 Reply Last reply
    0
    • P Philip Patrick

      Yeah, can't figure out how can I use it if I want so-called "non-greedy" expression, but with scripting version 5.0. See in version 5.5 you have a special qualifier "?" that gives you what you want, but version 5.0 (Win2k) doesn't have it. In my example I need to strip all ASP code from text, making "<%[\s\S]*%>" of course won't work if I have multiple occurances of ASP script in the page, I tried "<%[^(%>)]*%>" as well, but it takes parenthesses "()" as a characters... What can I use? Anyone can help? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      You can upgrade Win2K to scripting v5.6: http://msdn.microsoft.com/downloads/sample.asp?url=/msdn-files/027/001/733/msdncompositedoc.xml[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      P 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        You can upgrade Win2K to scripting v5.6: http://msdn.microsoft.com/downloads/sample.asp?url=/msdn-files/027/001/733/msdncompositedoc.xml[^]


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        P Offline
        P Offline
        Philip Patrick
        wrote on last edited by
        #3

        I know, well, I have XP, so got the right version, but the problem that Hosting Provider doesn't have it :( That's why I'm looking for an alternative way Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups