Fixed accidentally executing the find regex on the regex pattern instead of the actual line