Keep getting the result no such element found whenever I try run this code to find a pattern in a text file. I thought maybe the pattern was incorrect was originally using p