I use the following pattern for regex match in grep (zgrep, as searching within compressed files) as
zgrep -P '(?<=start).{20,120}(?=end)' *
I need to add some terms with OR
operator in the middle, but this pattern does not work
zgrep -P '(?<=start)[first|second|third].{20,120}(?=end)' *
How can I introduce first|second|third
in the middle of the matching string?