Hello
I have been trying to search for a pattern in an array, I have managed to search through each line and find the pattern and then print a 'found pattern' statement however currently the script prints 'did not find pattern' if it does not find it on a line. I only want it to print success/failure text if it finds pattern somewhere in the array and not whether it finds it in a line ( if that makes sense). I will be searching for a few different patterns in the array and will have to only print a "found patterns" statement or "did not find patterns" statement for the complete search.... any ideas how to optimize this code?