Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Matching Exact Word

by kzwix (Sexton)
on Oct 09, 2014 at 11:20 UTC ( [id://1103285]=note: print w/replies, xml ) Need Help??


in reply to Re: Matching Exact Word
in thread Matching a Word Exactly

You are right. However, even this code may fail, if somebody misspells the country names.

It is more a linguistic problem than a pattern recognition one, and, as such, seems extraordinary difficult to tackle in a failproof way (which would require an AI, a syntaxic and contextual analysis, etc.)

However, as you mentioned, using negative look-ahead and negative look-behind assertions should allow him to avoid the most common other words.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-29 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found