Suppose I have a txt file that looks like the following:

```
pattern 1 
pattern 2
pattern 3
some information
pattern 1
pattern 2
pattern 3
some other information
.....

```

Is there a way to match pattern 1, pattern 2, and pattern 3 (which are in different lines) at the same time?
The file contains other stuff. It has stuff at the beginning and the end that I don't want. I just want to extract the part of the file described as above.