Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
In a file each value is comma separated with enclosed double quotes , i got error when one of the row has special characters , how do i remove it
usually in the string we can use this function it may work
row1.contains("?")? row1.replace("?","")
And question from my end is it at the start of the line in the file
yes start of the line in the file
have you tried this option below
tried but it enclosed twice double quotes instead of single
fixed with below solution
.replaceAll("[^0-9]", "").trim();
Oh okay , nice, thanks for the update