trim equivalent

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alex

    trim equivalent

    i can't find a vbscript trim function equivalent in javascript. what's the
    easiest way to clean white space out from the beginning and end of a string
    in javascript?


  • alex

    #2
    Re: trim equivalent

    that link rocks, thanks!

    "HikksNotAtHome " <hikksnotathome @aol.com> wrote in message
    news:2003072420 4737.27503.0000 1282@mb-m24.aol.com...[color=blue]
    > In article <b5udnenzw-L-872iXTWc-g@speakeasy.net >, "alex"[/color]
    <alex@wireimage .com>[color=blue]
    > writes:
    >[color=green]
    > >i can't find a vbscript trim function equivalent in javascript. what's[/color][/color]
    the[color=blue][color=green]
    > >easiest way to clean white space out from the beginning and end of a[/color][/color]
    string[color=blue][color=green]
    > >in javascript?[/color]
    >
    > http://www.jibbering.com/faq/#FAQ4_16
    > --
    > Randy
    > All code posted is dependent upon the viewing browser
    > supporting the methods called, and Javascript being enabled.[/color]


    Comment

    • Douglas Crockford

      #3
      Re: trim equivalent

      > i can't find a vbscript trim function equivalent in javascript. what's the[color=blue]
      > easiest way to clean white space out from the beginning and end of a string
      > in javascript?[/color]

      You can find one here: http://www.crockford.com/javascript/remedial.html

      Comment

      Working...