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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -