AbstractWe present a simple and efficient algorithm for matching regular expression with texts, using full inverted text. It is based on the max-flow/min-cut algorithm, traditionaly employed to resolve linear problems. Our procedure constructs an optimal set of nodes for any automaton. They constitute the set of starting points for the pattern matching procedure. The algorithm is presented in two forms. The first one, named Index–Text, selects areas on which are applied classical algorithms (that have an O(nf(m)) complexity where n is the size of the text, and m the size of the automaton) for regular expression matching. The second one, named Index–Index, selects a set of entries of the full inverted text. This set contains the points of de...