Why this regex takes so long?

2014-10-02 Thread Claude Schnéegans
Hi, I'm having a problem with a scheduled task that chokes my server. Its role is to analyse bounced messages. I have been able to identify where it blocks, when analysing a line like this one with the regex below: Message-id: 26823262.22036.1411993378646.JavaMail.NS4007563$@127.0.0.1 CFSET

Re: Why this regex takes so long?

2014-10-02 Thread Byron Mann
Think this has something to do with the Regex itself. I stink at them; however try plugging it in here: http://regex101.com/ It returns something about catastrophic backtracking. You may want something like this: [A-Z0-9]*@ On Thu, Oct 2, 2014 at 11:51 AM, wrote: Hi, I'm having a problem

Re: Why this regex takes so long?

2014-10-02 Thread Claude Schnéegans
however try plugging it in here: It gives me the same result: Timout for PHP and Python (after about 3 sec) and a result in Javascript in about 4 sec, because it happens in my computer and there is no time out. It looks like the problem is really in the regEx itself. I'll try to get another