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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -