Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at NCDevCon 2011 (Raleigh, NC) with: Jaana Gilbert
Ben Nadel at NCDevCon 2011 (Raleigh, NC) with: Jaana Gilbert@jaanagilbert )

Kaman

Member since Aug 10, 2010

Recent Blog Comments By Kaman

  • Ask Ben: Javascript Replace And Multiple Lines / Line Breaks

    Posted on Aug 10, 2010 at 4:22 PM

    Hi Ben, I want to convert two or more line breaks into one line break. Is there any reqular expression? this one is not working strMultiLineText1.replace(new RegExp("[\n\n]", "g" ), "\\n); Given Text ------------ Line 1 <linebreak1> <linebreak2> Line 2 <linebreak1> <linebreak... read more »