| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|PHP reg expression question|
Simple question, what is the most efficient way to search for whole words in a string?
For example if I have two strings:
1.) This is the way to the lake.
2.) It was always like this.
When I search for the word "is" only the 1st string should match. My current script returns the second string also because it has "this" or i and s in the sequence.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved