regular expression starts with word and ends with word code example
Example 1: regular expression starts and ends with same symbol
/^(a|e|i|o|u).*\1$/
Example 2: regex start word
Just use "^" to specify matching a pattern at the beginning of each line.
Example with grep:
grep "^pattern" file.txt