Hi,

I have a .csv file that contains some text at the begining and them 5 columns. the problem i have is that i just want to extract and print out certain lines and ignore others. the first field always contains either URL or REDR, an d i only want to pull back the lines that starts with either URL or REDR.

i had a regular expression that pulled back numbers :

Pattern p = Pattern.compile("\\d+,.*");

This pulled back all line that began with number. i don't think i can use [a-z] as the first few lines contain text aswell and i want to ignore these.

can anyone please help me.

scoobie

Hi,

i got this to work. i just used

Pattern p = Pattern.compile( "^(URL|REDR).*" );

Thanks,

scoobie