I have a string object as follows
"abc
def
ghi
jkl
mno"
I would like to transform it into
"abc
def
ghi
jkl
mno"
I'm not familiar with regular expression pattern matching so I'm asking here.
I tried something like
but that doesn't do anything.
Any help is appreciated.
-----------------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rich Cook
"abc
def
ghi
jkl
mno"
I would like to transform it into
"abc
def
ghi
jkl
mno"
I'm not familiar with regular expression pattern matching so I'm asking here.
I tried something like
Code:
text = text.split(/^\r\n/).join('');
Any help is appreciated.
-----------------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rich Cook