-2
我需要更換:正則表達式替換不替換以下
string full = <para number="3.">Rule 33.12 of the Federal Court Rules 2011(“FCR”) regulates the practice and procedure to be followed with respect to appeals from the Tribunal. It relevantly provides:</para><item>(2) The notice of appeal must state: </item><item>(a) the part of the decision the applicant appeals from or contends should be varied; and </item><item>(b) the precise question or questions of law to be raised on the appeal; and </item><item>(c) any findings of fact that the Court is asked to make; and </item><item>(d) the relief sought instead of the decision appealed from, or the variation of the decision that is sought; and </item><item>(e) briefly but specifically, the grounds relied on in support of the relief or variation sought. </item><item>Note: The Court can only make findings of fact in limited circumstances—see section 44(7) of the AAT Act. </item><para number="4.">
與此:
string full = <para number="3.">Rule 33.12 of the Federal Court Rules 2011 (“FCR”) regulates the practice and procedure to be followed with respect to appeals from the Tribunal. It relevantly provides:<quote><para>(2) The notice of appeal must state: <list><item>(a) the part of the decision the applicant appeals from or contends should be varied; and </item><item>(b) the precise question or questions of law to be raised on the appeal; and </item><item>(c) any findings of fact that the Court is asked to make; and </item><item>(d) the relief sought instead of the decision appealed from, or the variation of the decision that is sought; and </item><item>(e) briefly but specifically, the grounds relied on in support of the relief or variation sought. </item><item>Note: The Court can only make findings of fact in limited circumstances—see section 44(7) of the AAT Act. </item></list></quote></para><para number="4.">
我用這個代碼:
line = Regex.Replace(line, full, fullNew);
行變量包含全xml文件。
請幫忙。需要這個不好。請
看來你需要的與string.replace代替regex.replace,更好的XML解析器。 –
你能告訴我如何使用字符串替換? –
對不起。有效。 –