Search:

Type: Posts; User: macko

Search: Search took 0.10 seconds.

  1. Thread: wildcard delete

    by macko
    Replies
    13
    Views
    2,063

    [SOLVED] Re: wildcard delete

    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 '...
  2. Thread: wildcard delete

    by macko
    Replies
    13
    Views
    2,063

    [SOLVED] Re: wildcard delete

    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...
  3. Thread: wildcard delete

    by macko
    Replies
    13
    Views
    2,063

    [SOLVED] Re: wildcard delete

    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...
  4. Thread: wildcard delete

    by macko
    Replies
    13
    Views
    2,063

    [SOLVED] Re: wildcard delete

    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...
  5. Thread: wildcard delete

    by macko
    Replies
    13
    Views
    2,063

    [SOLVED] Re: wildcard delete

    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 :)
  6. Thread: wildcard delete

    by macko
    Replies
    13
    Views
    2,063

    [SOLVED] Re: wildcard delete

    Ok will take a look now. May as well have 4 hours to waste lol its 4am.. had to much coke cant sleep heh
  7. Thread: wildcard delete

    by macko
    Replies
    13
    Views
    2,063

    [SOLVED] Re: wildcard delete

    whee would i begin? "*D" wont seem to work

    unless its "\*D" ?
  8. Thread: wildcard delete

    by macko
    Replies
    13
    Views
    2,063

    [SOLVED] wildcard delete

    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 ...
Results 1 to 8 of 8