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. Programming Challenge

Programming Challenge

Scheduled Pinned Locked Moved The Lounge
wpfcsharpcomregexarchitecture
22 Posts 7 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.
  • T tolw

    I for one find this amusing and tried to save you from the one-voters. Anyway, my answer would be:

    <[^:Wh]+Tables\(\"(.~(Data>))*\"\)

    M Offline
    M Offline
    Mycroft Holmes
    wrote on last edited by
    #5

    Maxx deserves the univote for the snd codz request and in the Lounge. you should get the 5 (assuming this works). I vote for neither...

    Never underestimate the power of human stupidity RAH

    T L 3 Replies Last reply
    0
    • M Mycroft Holmes

      Maxx deserves the univote for the snd codz request and in the Lounge. you should get the 5 (assuming this works). I vote for neither...

      Never underestimate the power of human stupidity RAH

      T Offline
      T Offline
      tolw
      wrote on last edited by
      #6

      He did mark it as a coding challenge and if I recall correctly that makes it Lounge safe ;) I know the last sentence makes it all a bit suspicious, but since this is not his first day here, I am willing to give him the benefit of the doubt. Plus AspDotNetDev hasn't posted any puzzles recently and this was somewhat of a substitute :)

      M L 2 Replies Last reply
      0
      • T tolw

        He did mark it as a coding challenge and if I recall correctly that makes it Lounge safe ;) I know the last sentence makes it all a bit suspicious, but since this is not his first day here, I am willing to give him the benefit of the doubt. Plus AspDotNetDev hasn't posted any puzzles recently and this was somewhat of a substitute :)

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #7

        I still reckon it is a dodge, he's just trying to wriggle out of posting in the Q&A forum, especially with the snd codz. Bah humbug I say, wheres my single stick!

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • L Lost User

          Write a regular expression, suitable for the Search option in VS2010, that will find all occurrences of xxxTables("yyy") where xxx is any string of any length yyy is any string of any length that does not end with 'data' e.g. it should find ds.Tables("myTable") but not ds.Tables("myTableData") This is, obviously, just to check out how clever you are - and not because this is something i need to do in a current project :-O

          MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

          W Offline
          W Offline
          Wayne Gaylard
          wrote on last edited by
          #8

          Sorry, but this belongs either in Q&A or the regex forum. Making it a 'Programming Challenge' is just a con, let's face it.

          When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

          L 1 Reply Last reply
          0
          • M Mycroft Holmes

            Maxx deserves the univote for the snd codz request and in the Lounge. you should get the 5 (assuming this works). I vote for neither...

            Never underestimate the power of human stupidity RAH

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

            The only difference is, he did not include his email id.

            1 Reply Last reply
            0
            • L Lost User

              _Maxxx_ wrote:

              This is, obviously, just to check out how clever you are - and not because this is something i need to do in a current project :O

              If that's so, I also have a few great ones. How good are you with HLSL and neural nets? :)

              I'm invincible, I can't be vinced

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

              I used to be good with neural nets, but use neural rods these days.

              MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

              1 Reply Last reply
              0
              • A Aamir Butt

                _Maxxx_ wrote:

                This is, obviously, just to check out how clever you are

                And this obviously, a very easy programming question with a simple negative lookahead which both C# and Javascript support. Best fit for Quick Answers Forum IMO.

                A year spent in artificial intelligence is enough to make one believe in God

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

                I think I know your brother, Seymour.

                MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                1 Reply Last reply
                0
                • T tolw

                  I for one find this amusing and tried to save you from the one-voters. Anyway, my answer would be:

                  <[^:Wh]+Tables\(\"(.~(Data>))*\"\)

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

                  Thanks, I can't try it right now as I am too upset over those nasty univoters. Maybe I'll cop a strop and leave ... Well, maybe not.

                  MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                  1 Reply Last reply
                  0
                  • M Mycroft Holmes

                    Maxx deserves the univote for the snd codz request and in the Lounge. you should get the 5 (assuming this works). I vote for neither...

                    Never underestimate the power of human stupidity RAH

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

                    Ohhhh but you're cruel and heartless!

                    MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                    M 1 Reply Last reply
                    0
                    • T tolw

                      He did mark it as a coding challenge and if I recall correctly that makes it Lounge safe ;) I know the last sentence makes it all a bit suspicious, but since this is not his first day here, I am willing to give him the benefit of the doubt. Plus AspDotNetDev hasn't posted any puzzles recently and this was somewhat of a substitute :)

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

                      To be absolutely honest, this was a genuine problem I had that I had been toying with for half an hour (I don't know raged from regie Perrin) and was going to Q&A it, then thought that it might be a good coding challenge for the regicides amongst you. I thought lounge posting it may evoke a humorous response - though judging by the quality of some of the recent jokes, the funny-bone of some members is in need of a splint!!

                      MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                      T 1 Reply Last reply
                      0
                      • W Wayne Gaylard

                        Sorry, but this belongs either in Q&A or the regex forum. Making it a 'Programming Challenge' is just a con, let's face it.

                        When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

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

                        No need to apologize. There's a regex foruml I never even thought to look!

                        MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                        W P 2 Replies Last reply
                        0
                        • L Lost User

                          No need to apologize. There's a regex foruml I never even thought to look!

                          MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                          W Offline
                          W Offline
                          Wayne Gaylard
                          wrote on last edited by
                          #16

                          It's called Regular Expressions :laugh:

                          When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

                          1 Reply Last reply
                          0
                          • T tolw

                            I for one find this amusing and tried to save you from the one-voters. Anyway, my answer would be:

                            <[^:Wh]+Tables\(\"(.~(Data>))*\"\)

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

                            it flippin' well works, too! you beauty! found meself 30 occurrences in 1511 files - probably saved me an age in looking and missing some! Thanks - please add 5 to your kitty of CP Points - hopefully they will be worth something one day and you can trade them in for something useful!

                            MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                            1 Reply Last reply
                            0
                            • L Lost User

                              Write a regular expression, suitable for the Search option in VS2010, that will find all occurrences of xxxTables("yyy") where xxx is any string of any length yyy is any string of any length that does not end with 'data' e.g. it should find ds.Tables("myTable") but not ds.Tables("myTableData") This is, obviously, just to check out how clever you are - and not because this is something i need to do in a current project :-O

                              MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                              M Offline
                              M Offline
                              Marc Clifton
                              wrote on last edited by
                              #18

                              _Maxxx_ wrote:

                              Write a regular expression

                              I(Loathe)[regular expression]{syntax} Marc

                              My Blog
                              An Agile walk on the wild side with Relationship Oriented Programming
                              Melody's Amazon Herb Site

                              1 Reply Last reply
                              0
                              • L Lost User

                                To be absolutely honest, this was a genuine problem I had that I had been toying with for half an hour (I don't know raged from regie Perrin) and was going to Q&A it, then thought that it might be a good coding challenge for the regicides amongst you. I thought lounge posting it may evoke a humorous response - though judging by the quality of some of the recent jokes, the funny-bone of some members is in need of a splint!!

                                MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                                T Offline
                                T Offline
                                tolw
                                wrote on last edited by
                                #19

                                I... I... I feel so used :^) All my ideals and beliefs shattered mercilessly by the cruel abuse of the non-programming forum. Will I ever be able to trust another human being? The horror! The horror! But - it is good to know I could help :)

                                1 Reply Last reply
                                0
                                • L Lost User

                                  No need to apologize. There's a regex foruml I never even thought to look!

                                  MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

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

                                  Yes, had it for a while and it needs more traffic.

                                  1 Reply Last reply
                                  0
                                  • L Lost User

                                    Ohhhh but you're cruel and heartless!

                                    MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                                    M Offline
                                    M Offline
                                    Mycroft Holmes
                                    wrote on last edited by
                                    #21

                                    _Maxxx_ wrote:

                                    Ohhhh but you're cruel

                                    Thats th one, out with the wip and spurs... :-O oh sorry wrong forum

                                    Never underestimate the power of human stupidity RAH

                                    L 1 Reply Last reply
                                    0
                                    • M Mycroft Holmes

                                      _Maxxx_ wrote:

                                      Ohhhh but you're cruel

                                      Thats th one, out with the wip and spurs... :-O oh sorry wrong forum

                                      Never underestimate the power of human stupidity RAH

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

                                      Mycroft Holmes wrote:

                                      out with the wip and spurs

                                      sounds like you're flogging a dead horse. to me ;)

                                      MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                                      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