Vijay Ramachandran
unread,May 25, 2011, 10:52:39 PM5/25/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to esmre-discuss
Hello. I am not sure if the following is working as expected.
>>> import esmre
>>> index = esmre.Index()
>>> index.enter(r"\bway\W+haye?\b", "sea shanty")
>>> index.query("broadWay to go?")
['sea shanty']
If I understand correctly, the \bway says that way should be found at
a word boundary, however, broadway seems to match when it shouldn't?
Am I misunderstanding something?
thanks!
Vijay