Regex positive look behind using OR?

Viewed 25

I'm trying to select the first fighter from two groups of text:

https://regex101.com/r/ReqAah/1

The first group the fighter name (Arman Tsarukyan) follows the word "Night" followed by a new line.

The first group the fighter name (Nate Maness) follows the word "now" followed by a new line.

I'm using positive look behinds and look aheads, and can capture both with two regex, but I want to capture both scenarios with one regex. Is it possible to use OR within the look aheads and behinds? Any help much appreciated.

(?<=Night\\n)(.*?)(?=\\nvs)
(?<=now\\n)(.*?)(?=\\nvs)

Thanks!

0 Answers
Related