Get scanner to include but ignore quoted text?

Posted by user1086516 on Stack Overflow See other posts from Stack Overflow or by user1086516
Published on 2012-04-15T16:47:18Z Indexed on 2012/04/15 17:30 UTC
Read the original article Hit count: 189

Filed under:
|
|
|

Basically my problem is this, I need to parse text where , is the delimiter but anything in " " quotes should not be checked for a delimiter. Is this what the Scanner.skip method is for? I would check it myself but I don't understand how to write a regex pattern in java where the token is something in between two " ". I also want to include any quoted text in the proper token which was delimited by the valid ,.

© Stack Overflow or respective owner

Related posts about java

Related posts about regex