how to find word which ends with s using regex code example
Example 1: regex ends with string
$ is used to match the end of the string. and can be used like
"string"$
like
xyz$
if you want to end with xzy
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