Shawn Olson Guestbook
Otto Teixeira said: [ Regarding Strip Character and Whitespace in JavaScript Function ]
Why not use the built in replace() function?
string.replace(/,/g, "");[ See Responses ]
Shawn Olson said: [ See Comment Stimulus ]
Otto... yes, your question is very good. I cannot say why I chose to write a custom function to handle that. There may have been some quirk in one of the browsers back then... it's hard to say. I may not have been thinking clearly due to working late or sipping too much wine!
Thanks for the input.
Please note that not all of the ideas, opinions and statements made in this guestbook necessarily represent the views and opinions of Shawn Olson.
This guestook is kept spam-free by the protection of the GoodGuest System.
Featured Articles by Shawn Olson
November 18, 2009 Newsletter
11.18.09 November 18, 2009 Newsletter with a discussion on social networking sites like Facebook. Links to latest projects.
Preview of new CS:Source Map de_tension
11.17.09 My return to mapping is about to be official with the remake of de_tension for CS:Source. This new map includes a novel mapping technique developed my Andrew Penry and myself called Dynamic Mapping.
Well Shark
11.03.09 A cartoon about the infamous well shark--a creature that is not as benign as is commonly thought.
Dragon Maze
10.04.09 A maze challenge featuring dragon art. Try to sneak past the dragon and escape the maze.
My Images by Shawn Olson
A view of the tunnels between bombsites A and B in de_tension.Preview of new CS:Source Map de_tension Posted on 11.17.09







