Community Member Profile
Kaman
Member since Aug 10, 2010
- Profile: /members/6639-Kaman.htm
- Comments: 1
- Points: 10
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&... read more »



