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. General Programming
  3. C#
  4. Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ?

Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ?

Scheduled Pinned Locked Moved C#
regexquestion
8 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.
  • E Offline
    E Offline
    ektoras
    wrote on last edited by
    #1

    Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ?

    J L 2 Replies Last reply
    0
    • E ektoras

      Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ?

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      improved to do....? :wtf:

      E 1 Reply Last reply
      0
      • J J4amieC

        improved to do....? :wtf:

        E Offline
        E Offline
        ektoras
        wrote on last edited by
        #3

        I want to make it smaller and faster.

        D 1 Reply Last reply
        0
        • E ektoras

          Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ?

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          No. xacc-ide 0.0.12 now with C#, MSIL, C, XML, ASP.NET and HLSL coloring - Screenshots

          E 1 Reply Last reply
          0
          • E ektoras

            I want to make it smaller and faster.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Once again, what does this expression DO? Smaller and faster is directly influenced by the quality of the data that this expression is supposed to parse. If the incoming data is tight and follows formatting rules properly, then you can probably relax the expression a bit. But if the data is messy, your expression is going to have to be written to deal with that mess. So, unless you get more specific about what this expression is supposed to do and with what quality of data, there's nothing we can do to help you. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            E 1 Reply Last reply
            0
            • L leppie

              No. xacc-ide 0.0.12 now with C#, MSIL, C, XML, ASP.NET and HLSL coloring - Screenshots

              E Offline
              E Offline
              ektoras
              wrote on last edited by
              #6

              Thanks Leppie.

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                Once again, what does this expression DO? Smaller and faster is directly influenced by the quality of the data that this expression is supposed to parse. If the incoming data is tight and follows formatting rules properly, then you can probably relax the expression a bit. But if the data is messy, your expression is going to have to be written to deal with that mess. So, unless you get more specific about what this expression is supposed to do and with what quality of data, there's nothing we can do to help you. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                E Offline
                E Offline
                ektoras
                wrote on last edited by
                #7

                It finds all the words which start with _ or letter and contains only _ letters numbers.

                D 1 Reply Last reply
                0
                • E ektoras

                  It finds all the words which start with _ or letter and contains only _ letters numbers.

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  In that case, no, it can't be done any quicker. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                  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