Regex Notes

Statement 1:

grep ^C.[^a]le$ n1.txt :

^C - Starts With C

. - Second character can be anything

[^a] - Third Character is not a

l - Fourth Character is l

e - Fifth Character is e

$ - Ending position

Statement 2: