preceding texts of lasts "pattern2" of following texts of firsts "pattern1" of lines whose
(
it contains "pattern1" AND
(
following text of first "pattern1" of it contains "pattern2"
)
)
of files whose
(
(
name of it ends with ".txt"
)
AND
(
exists line whose
(
it contains "pattern1" AND
(
following text of first "pattern1" of it contains "pattern2"
)
)
of it
)
)
of folder "C:\temp"
preceding texts of lasts "pattern2" of following texts of firsts "pattern1" of lines whose(it contains "pattern1" AND (following text of first "pattern1" of it contains "pattern2")) of files whose((name of it ends with ".txt") AND (exists line whose(it contains "pattern1" AND (following text of first "pattern1" of it contains "pattern2")) of it)) of folder "C:\temp"