regex - Removing blank spaces from CSV with java -
before leaving negative comment me copying questions:
i've read other stackoverflow question (remove blank spaces , empty lines) , tried out of suggestions none worked me.
want remove blank spaces in following csv:
<stx> somevalue;somevalue1;somevalue2 <cr><lf>
i need remove blank space between "stx" , "somevalue" , blank space between "somevalue2" , "cr".
thanks in advance.
you can use replace:
string s1="<stx> somevalue;somevalue1;somevalue2 <cr><lf>"; string replacestring=s1.replace(' ','');//replaces occurrences of ' ' ''
Comments
Post a Comment