次のテキストファイルがあります。
VERDICT:
MR. FOREMAN: Guilty.
THE COURT: Accused and, you have been found guilty on the charges as you have heard the Foreman for the jury say. You are remanded. I have requested a probation report and you are remanded until sentencing, until the Court receives the probation report.
THE COURT: Mr. Foreman and members of the jury, on behalf of the administration of justice
THE CLERK: Joh Doe the jury have found you guilty. Have you anything to say before Her Ladyship, the Judge, proceeds to sentence you?
SENTENCE:
THE COURT: John Doe.
評決、職長、裁判所、書記官、文などのキーワードをタグにしてデータベースに入力したいと考えています。これらの単語を抽出してタグを作成し、xml ドキュメントを形成してデータベースに配置する方法を教えてください。正規表現とデータ抽出を使用して検索してきましたが、まだ何も見つかりませんでした。