Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Most specific pattern

by Ultra (Hermit)
on Jul 01, 2005 at 06:48 UTC ( [id://471564]=note: print w/replies, xml ) Need Help??


in reply to Most specific pattern

Disclaimer: This may not fit your purposes ...

A rough brute method would be to match all the REs against a given string and measure the time consumed. This way you'll have a best fit.
read more before flaming...

Actually this doesn't necessarily reveal the best fit, but somehow benchmarks the RE engine.
The point is that if you want to determine the best fit you need to write some sort of a RE engine. But that's why you use one, in order not to write it yourself :-)

Dodge This!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://471564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-24 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found