Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: (FoxUni) Re: generating regexes?

by blakem (Monsignor)
on Nov 20, 2001 at 05:17 UTC ( [id://126442]=note: print w/replies, xml ) Need Help??


in reply to Re: (FoxUni) Re: generating regexes?
in thread generating regexes?

I think the regex engine provides enough hooks that you could write such a function w/o access to the underlying C code. For instance, some automatically placed (?{}) assertions might allow the scoring routine to offer "partial credit" for regexes that only match part of the string. Therefore, you could allow for a finer granularity than just 1=match 0=nomatch.

(?{}) is a relativly new feature that allows arbritrary code to be executed inside your regex..... it is (ab)used in the rebug regex debugger that japhy mentioned a while back.

-Blake

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-18 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found