Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q241, Friday October 24, 2008 at 11:49:47

You are here: irt.org | About | Feedback | 5325 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q241

Sent by
Riku Fabrick on Friday October 24, 2008 at 11:49:47

Worth:

Length:

Technical:

Comments:
The regexp solution strips not only white spaces, but anything non-latin and non-alphabet (didn't test too much, but so it seems). Here's a working example: mystring.replace(/(^s*|s*$)/g, '');

Jay Dunnings suggestion on the other hand obviously strips ALL white spaces, not just the leading and trailing.

So, out of the three here, only the first one does what it's supposed to do.




Other feedback on 'irt.org FAQ Knowledge Base Q241' - show all

©2018 Martin Webb