how to find a word in a sentence this pattern looks for the word "awesome" | ||
Pattern --> | /awesome/ | |
---|---|---|
This website rocks! | DOES NOT MATCH | |
This site is totally awesome! | MATCH | |
Some people really like this blog. | DOES NOT MATCH | |
Awesome is a word I would use to describe this article! | DOES NOT MATCH |
how to find a word regardless of UPPER or lowercase this pattern is the same as above, but uses the "i" modifier | ||
Pattern --> | /awesome/i | |
---|---|---|
This website rocks! | DOES NOT MATCH | |
This site is totally awesome! | MATCH | |
Some people really like this blog. | DOES NOT MATCH | |
Awesome is a word I would use to describe this article! | MATCH |
how to find a list of words in a sentence this pattern looks for the occurrence of two words: "awesome" and/or "rocks" "|" = logical or | ||
Pattern --> | /awesome|rocks/i | |
---|---|---|
This website rocks! | MATCH | |
This site is totally awesome! | MATCH | |
Some people really like this blog. | DOES NOT MATCH | |
Awesome is a word I would use to describe this article! | MATCH |