Text this: States constrain-based algorithm for large scale regular expression matching