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

Re: Re: Quick regexp question

by rkg (Hermit)
on Oct 06, 2003 at 02:32 UTC ( [id://296839]=note: print w/replies, xml ) Need Help??


in reply to Re: Quick regexp question
in thread Quick regexp question

Yep, imperfect, but it is the best I can do given the large volume of text I need to process, and meets the level of accuracy of the spec.


<humor> Maybe perl 6 will offer new flavors of \b word boundary tags which'll be smart enough to recognize the start of well-know acronyms...</humor>

Replies are listed 'Best First'.
Re: Re: Re: Quick regexp question
by Cody Pendant (Prior) on Oct 06, 2003 at 02:58 UTC
    You could always define a hash of any acronyms that are likely to be there (download a list from somewhere) and put "unless defined $dontchange{$word}" before your regex.


    ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-29 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found