Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at RIA Unleashed (Nov. 2010) with: Carol Loffelmann and Vicky Ryder and Simon Free
Ben Nadel at RIA Unleashed (Nov. 2010) with: Carol Loffelmann ( @Mommy_md ) , Vicky Ryder@fuzie ) , and Simon Free@simonfree )

someone

Member since Dec 11, 2008

Recent Blog Comments By someone

  • Ask Ben: Javascript String Replace Method

    Posted on Apr 28, 2007 at 10:39 AM

    there's no need to create a RegExp object inside replace function, as the latter supports regular expressions itself, e.g.: str.replace(/<br>/gi,"\n"); where gi obviously stends for global search + case insensitive. same applies for match(), search() and the like.... read more »