Search and don\'t replace


/ Published in: JavaScript
Save to your folder(s)

two awesome bits: using ''.replace() perform an action (other than replacing it) on some text, and a simple way to concatenate strings with a separator (retardedly simple but it always confuses me)

URL: http://ejohn.org/blog/search-and-dont-replace/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.