Is there anything faster than regex for matching a whole word?
问题 EDIT : My original question was asking whether anything could ever be faster than regex for matching a whole word. I have added my code, and have run several tests. The details are below My sample matching string (from The Old Man And The Sea ) He was an old man who fished alone in a skiff in the Gulf Stream and he had gone eighty-four days now without taking a fish. In the first forty days a boy had been with him. But after forty days without a fish the boy’s parents had told him that the