-1
我有以下的文本文件:解析或數據庫中提取輸入數據
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文檔以將其放入數據庫中。我一直在尋找使用正則表達式和數據提取,但我還沒有發現任何東西。
您可能會有更好的運氣,顯示你至少已經嘗試了一些東西。 – JohnFx
我確實嘗試過一些約翰...我創建了一個具有相同內容的xml文件,並使用sqlbulk複製代碼將其寫入到數據庫....但是,我手動創建了該標記...我想生成標籤,而不是... – Rose
麻煩的是,你實質上是在要求某人爲你完成整個事情。顯示代碼或目前爲止的任何內容,並詢問有關您遇到問題的部分的具體問題。它現在閱讀的方式是「爲我工作」。沒有任何意圖,只是想幫助你得到有用的答案。 – JohnFx