Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at RIA Unleashed (Nov. 2009) with: Kim Andi
Ben Nadel at RIA Unleashed (Nov. 2009) with: Kim Andi@msandi )

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 »