Rename getWordRegex to wordRegexForSnippets