142
rated 0 times
[
148]
[
6]
/ answers: 1 / hits: 26611
/ 13 Years ago, wed, april 27, 2011, 12:00:00
I want to remove space in the beggining of each line.
I have data in each line with a set of spaces in the beginning so data appears in the middle, I want to remove spaces in the beginning of each line.
tmp = tmp.replace(/(<([^>]+)>)/g,)
How can I add the ^s
condition into that replace()
?
More From » javascript