Unit SS, Part A: PAT, Algorithm: Regular expression searching