Created
October 26, 2017 14:18
-
-
Save stfalconaleks/b3df9813f5b2489141c342c11a0dee9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find all rabbits in locations which | |
// end on: shire, field, wood | |
// starts on: yellow, green | |
// and are not case sensitive | |
// e.g. Blackshire, Greenfield, Sherwood, SHERWOOD, wood, Yellowstone | |
$locationsRegExp = '/\b(yellow|green)\w*|\w*(shire|field|wood)\b/i'; | |
$rabbits = $search->findRabbitsInLocations(locationsRegExp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment