[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Regexp] Very slow patter matching
From: |
Ekkehard Goerlach |
Subject: |
Re: [Regexp] Very slow patter matching |
Date: |
20 Jun 2002 20:40:04 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Loty <address@hidden> writes:
> For some reason it takes forever to match - try it in the Test Applet.
> No, it's not hanging - it will come back in 5-6 minutes with correct matches.
>
> Here is my pattern - <VAR>\s+\w+\s+\w+[\\"\s*\w*\\"]*[\s+default\s+\w+]*;
>
> and here is some text I'm trying to match:
>
> <VAR> int interval1 "Fast Time Span" default 12;
> <VAR> int interval2 "Slow Time Span" default 26;
> <VAR> int interval3 "Signal Time Span" default 9;
> <VAR> int series "Series" default 1;
Looking at your example isn't it the following you are trying to
match:
<VAR>\s+\w+\s+\w+\s+("[\s\w]+")+\s+(default[\s\d]+)+
Ekkehard
PS: I checked it only using perl
--
Ekkehard Görlach Tumringerstrasse 287
address@hidden D-79539 Lörrach