gnu-regexp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Regexp] Performance problem


From: J Juan
Subject: [Regexp] Performance problem
Date: Mon, 18 Mar 2002 09:00:06 -0500
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1

Hi:

I have not resolved following performance problem, I am posting this again to see if anyone may have solutions. Or if anyone can point me to the area in the source code that I can take a look at. Thanks.

Jay
============
I am using following pattern to match a string that is 3-63 characters long:
"^[A-Za-z0-9][A-Za-z0-9-]{1,61}[A-Za-z0-9]$"

If the test string is more than 18 characters long, the execution seems to run forever. It seems that the repetition operator {1,61} is the problem. Is there any way to improve the performance? Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]