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. Other Discussions
  3. IT & Infrastructure
  4. regexp for regexp

regexp for regexp

Scheduled Pinned Locked Moved IT & Infrastructure
regexquestion
8 Posts 3 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.
  • R Offline
    R Offline
    robot_rock
    wrote on last edited by
    #1

    Hi All, is it possible to write regular expression to validate another regular expression?

    thanks, max

    O B 2 Replies Last reply
    0
    • R robot_rock

      Hi All, is it possible to write regular expression to validate another regular expression?

      thanks, max

      O Offline
      O Offline
      originSH
      wrote on last edited by
      #2

      Regex is for validating strings, regex patterns are strings. So yes, regex can validate a regex pattern.

      R 1 Reply Last reply
      0
      • O originSH

        Regex is for validating strings, regex patterns are strings. So yes, regex can validate a regex pattern.

        R Offline
        R Offline
        robot_rock
        wrote on last edited by
        #3

        Thank you! But could you also provide such regexp or link? ;-) I tried to find this info in google, but search doesn't succeed.

        thanks, max

        O 1 Reply Last reply
        0
        • R robot_rock

          Thank you! But could you also provide such regexp or link? ;-) I tried to find this info in google, but search doesn't succeed.

          thanks, max

          O Offline
          O Offline
          originSH
          wrote on last edited by
          #4

          I don't know of any links that have that info and it would take some time to make that regex :/ I had a quick look on google too and couldn't spot anything :(

          R B 2 Replies Last reply
          0
          • O originSH

            I don't know of any links that have that info and it would take some time to make that regex :/ I had a quick look on google too and couldn't spot anything :(

            R Offline
            R Offline
            robot_rock
            wrote on last edited by
            #5

            originSH, I appreciate your help! May be somebody else encounter such problem? :)

            thanks, max

            1 Reply Last reply
            0
            • O originSH

              I don't know of any links that have that info and it would take some time to make that regex :/ I had a quick look on google too and couldn't spot anything :(

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #6

              originSH wrote:

              it would take some time to make that regex

              No kidding!  Escape Hell! :~

              Semicolons: The number one seller of ostomy bags world wide. - dan neely

              1 Reply Last reply
              0
              • R robot_rock

                Hi All, is it possible to write regular expression to validate another regular expression?

                thanks, max

                B Offline
                B Offline
                Brady Kelly
                wrote on last edited by
                #7

                If you only have to check validity, depending on your platform (i.e. this will work in .NET), just try and use the candidate expression.

                Semicolons: The number one seller of ostomy bags world wide. - dan neely

                R 1 Reply Last reply
                0
                • B Brady Kelly

                  If you only have to check validity, depending on your platform (i.e. this will work in .NET), just try and use the candidate expression.

                  Semicolons: The number one seller of ostomy bags world wide. - dan neely

                  R Offline
                  R Offline
                  robot_rock
                  wrote on last edited by
                  #8

                  Yes, I thought about it, but I would like to have a pattern, that can be inserted in xsd, to verify input xml file, where stored other patterns.

                  thanks, max

                  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