Regular Expressions: Search in list
I want to have a fast way to match a regex in a list. The above solution has a linear complexity wrt the length of the list. Given things like suffix-array or suffix-tree for pure string search, is there something similar for regex search in a list that can have a sublinear complexity in the length of the list? (I am currently interested in a python solution. Solutions in other langauges can be mentioned, but not a priority here.) Thanks.