Test, validate and match regular expressions
This regex chains two positive lookaheads to require that a line contains both Russian keywords «заяц» (hare) and «лиса» (fox), regardless of their order or position. It implements a logical AND of multiple search terms within a single line, a common technique for filtering logs or text where several keywords must co-occur. The g flag finds all matches and m treats each line independently.