Quote (carteblanche @ May 9 2013 06:57pm)
i think you missed the point of my request. show me the characters. eg break the string into a char[] and tell me what the newline is. is it \n, \r, \n\r, \r\n, etc and show me what System.getProperty("line.separator") is returning
what are you replacing it with? you might not need a regex depending on what you use. for example, you can possibly iterate line by line, trimming each entry, and replacing the - using the string's char replace method
My bad. I'm trying but the char array does not return \n, \t, \n\r, \r\n, it returns a new line followed by my regex. Like this,
[0-100]-
System.getProperty("line.separator") is returning a new line and nothing else.