Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at dev.Objective() 2015 (Bloomington, MN) with: Carol Hamilton
Ben Nadel at dev.Objective() 2015 (Bloomington, MN) with: Carol Hamilton@k_Roll242 )

Kamal

Member since Dec 11, 2008

Recent Blog Comments By Kamal

  • Ask Ben: Javascript String Replace Method

    Posted on Jan 18, 2008 at 9:32 AM

    Very helpful. Thanks for the post. Here is the code which will replaces all double quote into escape sequence. sStrValue = sStrValue.replace( new RegExp('(")', "gi" ), function( $0, $1 ) { if ( $1 == '"' ) { return( '"' ); } });... read more »