Large regular expressions

2010-03-15 Thread Nathan Harmston
Hi, So I m trying to use a very large regular expression, basically I have a list of items I want to find in text, its kind of a conjunction of two regular expressions and a big list..not pretty. However everytime I try to run my code I get this exception: OverflowError: regular expression

Re: Large regular expressions

2010-03-15 Thread Stefan Behnel
Nathan Harmston, 15.03.2010 13:21: So I m trying to use a very large regular expression, basically I have a list of items I want to find in text, its kind of a conjunction of two regular expressions and a big list..not pretty. However everytime I try to run my code I get this exception:

Re: Large regular expressions

2010-03-15 Thread Alain Ketterlin
Nathan Harmston iwanttobeabad...@googlemail.com writes: [...] Could anyone suggest other methods of these kind of string matching in Python? I m trying to see if my swigged alphabet trie is faster than whats possible in Python! Since you mention using a trie, I guess it's just a big

Re: Large regular expressions

2010-03-15 Thread MRAB
Nathan Harmston wrote: Hi, So I m trying to use a very large regular expression, basically I have a list of items I want to find in text, its kind of a conjunction of two regular expressions and a big list..not pretty. However everytime I try to run my code I get this exception: