tada problem solved.. hehe, the correct syntax was:
if(data[i].contains("D")){
data[i] = data[i].replaceAll(".......\\WD", "");
}
Although the "." should have picked up the '...
Type: Posts; User: macko
tada problem solved.. hehe, the correct syntax was:
if(data[i].contains("D")){
data[i] = data[i].replaceAll(".......\\WD", "");
}
Although the "." should have picked up the '...
Ok ive removed the 'D from the end so far. looking through the API it stated a non word character = \w
So hence i used replaceAll("\\WD", "");
now the rest shall be easy :) since they are...
Don't judge me i'm abit dodgy :P altho your String test is equal to my data[] array my data[] array is scanning per line which stores it in the String data[i] and then im checking if it contains...
hmm even when using *.D.* it still doesn't want to remove 14°Ar3'D 13°Ar49'D from the file :(.
FileReader file = new FileReader("AD Converter/temp/update.txt");
Scanner scan = new...
hehe it's ok i doubt i could do a better example as im still learning the class API hehe, I'm in australia. Will let u kno once i figure it out :)
Ok will take a look now. May as well have 4 hours to waste lol its 4am.. had to much coke cant sleep heh
whee would i begin? "*D" wont seem to work
unless its "\*D" ?
Ok so a text file has data per row. But some of the data changes constantly but at least keeps 2 of the same characters within the split section.
MC Cnj Jup (L) Tr-Na 00:01am ...