Community Member Profile
- Profile: /members/6603-Gaurab.htm
- Comments: 2
- Points: 20
Recent Blog Comments By Gaurab
-
Ask Ben: Javascript Replace And Multiple Lines / Line Breaks
Posted on Aug 9, 2010 at 2:02 AM
Let me make clear... I have got a plane text in the format like ------------------------------------------- text text text text text texttext text text text text text text2 text2 text2 text2 text2 text2 You can see there is a line break in between the two... read more »
-
Ask Ben: Javascript Replace And Multiple Lines / Line Breaks
Posted on Aug 6, 2010 at 1:15 AM
How can i replace only soft line break with space and maintain the hard line break in a text using regex. I tried replace(/(\r\n){2,}/g,'\n') and later replace(/\n/g,' ') but without success.... read more »



