the pre-processor works with a set of regexes called a 預(yù)處理程序是用一組正則表達(dá)式(稱(chēng)為
since the fields have a fixed length, the regexes are simple, taking the form 因?yàn)樽侄伍L(zhǎng)度是固定的,正則表達(dá)式非常簡(jiǎn)單,采用
however, this proved too complex with long regexes it was difficult to decide how the group elements related to the regex 但是,實(shí)踐證明對(duì)于很長(zhǎng)的正則表達(dá)式這樣太復(fù)雜了(很難確定group元素與正則表達(dá)式的關(guān)系)。
the pre-processor attempts to match the source document against one of the regexes in the ruleset; if a regex matches, the pre-processor generates an xml element followed by more elements for every group in the regex 預(yù)處理程序嘗試對(duì)規(guī)則集中的一個(gè)正則表達(dá)式匹配源文檔,如果由一個(gè)正則表達(dá)式匹配,預(yù)處理程序就生成一個(gè)xml元素,后面跟著更多的元素,與正則表達(dá)式中每一組對(duì)應(yīng)。