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. The Lounge
  3. Microsoft .NET Rant - Regular Expressions

Microsoft .NET Rant - Regular Expressions

Scheduled Pinned Locked Moved The Lounge
regexcsharpdocker
7 Posts 4 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.
  • H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #1

    Microsoft *almost* has a PEG parser generator built into .NET I believe the Regular Expression engine already does memoization in matching. So all that would really need to be added is a) an op like PERL5's regex recursion b) a grammar model for a PEG grammar c) a simple way to compose a compound series of regex to match the PEG Unless i miss my guess they really did us all a disservice by stopping with regex. They made their regex so advanced it may as well be a parser, but for some stupid limitations.

    When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

    P L 2 Replies Last reply
    0
    • H honey the codewitch

      Microsoft *almost* has a PEG parser generator built into .NET I believe the Regular Expression engine already does memoization in matching. So all that would really need to be added is a) an op like PERL5's regex recursion b) a grammar model for a PEG grammar c) a simple way to compose a compound series of regex to match the PEG Unless i miss my guess they really did us all a disservice by stopping with regex. They made their regex so advanced it may as well be a parser, but for some stupid limitations.

      When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      I may not be as familiar with pegging as you, please explain?

      T H 2 Replies Last reply
      0
      • P PIEBALDconsult

        I may not be as familiar with pegging as you, please explain?

        T Offline
        T Offline
        TheGreatAndPowerfulOz
        wrote on last edited by
        #3

        I believe PEG = Parsing Expression Grammar. Not that I know what that exactly means....

        #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

        H 1 Reply Last reply
        0
        • P PIEBALDconsult

          I may not be as familiar with pegging as you, please explain?

          H Offline
          H Offline
          honey the codewitch
          wrote on last edited by
          #4

          sorry, it's a style of parsing. PEG stands for "parsing expression grammars" and it's basically a glorified backtracking regex matcher with memoization and recursion.

          When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

          1 Reply Last reply
          0
          • T TheGreatAndPowerfulOz

            I believe PEG = Parsing Expression Grammar. Not that I know what that exactly means....

            #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

            H Offline
            H Offline
            honey the codewitch
            wrote on last edited by
            #5

            You're right. And PEG is just a style of parsing based on what is essentially a souped up regex engine with backtracking and recursion. Memoization (keeping track of partial matches) is used to make the backtracking feasibly efficient. Microsoft has implemented like 75% of one maybe in their regex engine.

            When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

            1 Reply Last reply
            0
            • H honey the codewitch

              Microsoft *almost* has a PEG parser generator built into .NET I believe the Regular Expression engine already does memoization in matching. So all that would really need to be added is a) an op like PERL5's regex recursion b) a grammar model for a PEG grammar c) a simple way to compose a compound series of regex to match the PEG Unless i miss my guess they really did us all a disservice by stopping with regex. They made their regex so advanced it may as well be a parser, but for some stupid limitations.

              When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              honey the codewitch wrote:

              Unless i miss my guess they really did us all a disservice by stopping with regex.

              back of the line mate: #1. ms did us a disservice by stopping with windows, why not a complete operating system? #2. ms did us a disservice by stopping with metro (or whatever it's called now), why not a proper window manager ... not to mention the disservice of things introduced and then dumped, hard & soft (notwithstanding things long promised and never delivered) not to mention the the disservice of other peoples toys they grabbed (stole, or if that failed squeezed the life/market out of then bought for pennies) and smashed and not to mention joining other clubs (linux, opensource/github...) and [in their usual approach] swamping those with their ms-only toxic crap (as they've been known to do in the past with iso/industry standards/consortiums)

              Message Signature (Click to edit ->)

              H 1 Reply Last reply
              0
              • L Lost User

                honey the codewitch wrote:

                Unless i miss my guess they really did us all a disservice by stopping with regex.

                back of the line mate: #1. ms did us a disservice by stopping with windows, why not a complete operating system? #2. ms did us a disservice by stopping with metro (or whatever it's called now), why not a proper window manager ... not to mention the disservice of things introduced and then dumped, hard & soft (notwithstanding things long promised and never delivered) not to mention the the disservice of other peoples toys they grabbed (stole, or if that failed squeezed the life/market out of then bought for pennies) and smashed and not to mention joining other clubs (linux, opensource/github...) and [in their usual approach] swamping those with their ms-only toxic crap (as they've been known to do in the past with iso/industry standards/consortiums)

                Message Signature (Click to edit ->)

                H Offline
                H Offline
                honey the codewitch
                wrote on last edited by
                #7

                don't hold back man. Tell us how you really feel! (maybe over at soapbox though :laugh: )

                When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                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