Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2007-02-06 10:30:48


-----Original Message-----
From: boost-users-bounces_at_[hidden] on behalf of John Maddock
Sent: Tue 2/6/2007 7:31 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Regex failure
 
Is there any reason why you can't simplify your expression to just
"^[^\\s]+( ([^\\s]+)*)?$" which does the same thing much more efficiently?

[Nat] <offtopic> Is there any research work about programmatically optimizing a given regex to an equivalent, but more efficient, one? </offtopic>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net