Java Regex Help

Status
Not open for further replies.

LogicProgrammer

Smack-Fu Master, in training
65
Subscriptor
Hi All,

I'm having a brain fart and need some help formulating some regular expressions to parse data from a file. The format is as follows:
Code:
[ participants ]
TAG: Sentences.
...
TAG: Sentences.

Where "participants" is a comma delimited list of participants and Sentences is a ".", "?", or "!" delimited sequence of sentences (alpha numeric with random punctuation symbols, not including the delimiters). What I would like to do is to map the list of participants into an ArrayList<String> and then map each "dialogue entry" onto a pair "TAG, ArrayList<String>", where each string would correspond to a sentence in the list of sentences labeled by TAG.

I hope this makes sense. Any pointers?
 
Status
Not open for further replies.