while(@htmlLines) #### if(/$pattern1 && $pattern2/)