I've the data like
1
2
3
4
after I replace I should get the data as 1234 or 1 2 3 4.
I'm reading the content from one field and storing it one variable. I'm assigning the replaced value to one more variable.
I've tried using
var justiread=comments.read(); var result=justiread.replace(new RegExp( "/\r?\n|\r/", "g" ), ""); even after replacing I'm getting the same as I've entered.
If i want to do the same thing repeatedly say like 7 times. I'm using for loop but the same query is not working. any help pls
for(h=1;h<=7;h++){ var addjusti=JUSTIFICATION.read(h); var addresult=addjusti.replace(/(\r\n|\n|\r)/gm," "); } but i'm unable to write it into the field
Anyone please help me out.