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. substring and substr

substring and substr

Scheduled Pinned Locked Moved The Lounge
javascript
14 Posts 12 Posters 2 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.
  • C Chris Maunder

    Whoever decided these both needed to be in Javascript deserves a slapping.

    cheers Chris Maunder

    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #3

    Not to mention slice...

    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    K 1 Reply Last reply
    0
    • C Chris Maunder

      Whoever decided these both needed to be in Javascript deserves a slapping.

      cheers Chris Maunder

      B Offline
      B Offline
      Bergholt Stuttley Johnson
      wrote on last edited by
      #4

      It's there for those who cannot add the second value to the first (50% of posters in Q&A spring to mind)

      You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.

      1 Reply Last reply
      0
      • C Chris Maunder

        Whoever decided these both needed to be in Javascript deserves a slapping.

        cheers Chris Maunder

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

        Do they not have a mid? Someone needs to get on that.

        Kornfeld Eliyahu PeterK E 2 Replies Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          Not to mention slice...

          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #6

          And Splice. And Push, Pop, Shift, Unshift. Also the context of the value "this".:mad: Also numbers as floats.:mad::mad::mad: Been teaching JS recently and might be getting jaded by the feature-ridden design....

          KeithBarrow.net[^] - It might not be very good, but at least it is free!

          1 Reply Last reply
          0
          • P PIEBALDconsult

            Do they not have a mid? Someone needs to get on that.

            Kornfeld Eliyahu PeterK Offline
            Kornfeld Eliyahu PeterK Offline
            Kornfeld Eliyahu Peter
            wrote on last edited by
            #7

            String.prototype.mid = function(index1, indexb) { this.slice(index1, indexb); }

            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

            "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

            1 Reply Last reply
            0
            • C Chris Maunder

              Whoever decided these both needed to be in Javascript deserves a slapping.

              cheers Chris Maunder

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

              Chris Maunder wrote:

              Javascript deserves a slapping.

              There. That's all that needs to be said. Marc

              Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

              1 Reply Last reply
              0
              • C Chris Maunder

                Whoever decided these both needed to be in Javascript deserves a slapping.

                cheers Chris Maunder

                R Offline
                R Offline
                Ranjan D
                wrote on last edited by
                #9

                How about slice? are we gonna slice them :laugh: Slice vs Substr vs Substring http://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/3[^]

                Ranjan.D

                1 Reply Last reply
                0
                • C Chris Maunder

                  Whoever decided these both needed to be in Javascript deserves a slapping.

                  cheers Chris Maunder

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #10

                  Still relevant[^] after all this time.

                  N 1 Reply Last reply
                  0
                  • C Chris Maunder

                    Whoever decided these both needed to be in Javascript deserves a slapping.

                    cheers Chris Maunder

                    R Offline
                    R Offline
                    Rage
                    wrote on last edited by
                    #11

                    Chris Maunder wrote:

                    Whoever decided these both needed to be in Javascript deserves a slapping.

                    FTFY

                    Do not escape reality : improve reality !

                    1 Reply Last reply
                    0
                    • P Pete OHanlon

                      Still relevant[^] after all this time.

                      N Offline
                      N Offline
                      Nicholas Marty
                      wrote on last edited by
                      #12

                      I kinda expected the book to be empty :laugh:

                      1 Reply Last reply
                      0
                      • C Chris Maunder

                        Whoever decided these both needed to be in Javascript deserves a slapping.

                        cheers Chris Maunder

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #13

                        Chris Maunder wrote:

                        Whoever decided ... deserves a slapping.

                        Ooh, don't say that! Our formerly resident tory politician would be back in a flash to claim guilt!

                        I wanna be a eunuchs developer! Pass me a bread knife!

                        1 Reply Last reply
                        0
                        • P PIEBALDconsult

                          Do they not have a mid? Someone needs to get on that.

                          E Offline
                          E Offline
                          E Anderson
                          wrote on last edited by
                          #14

                          Or the lack of a trim() function.

                          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