If I want to match all occurrences of the word foo would I use foo or without the last one? It seems both work, but what's proper?
foo
You would need to use both. Without the last you would get a match on strings such as:
"I love football" "You foolishly left off your second word boundary"
2.1m questions
2.1m answers
60 comments
57.0k users