this isn’t just an academic curiosity. flip the alternation order to (ab|a)+ and suddenly PCRE matches the entire string! the | operator in backtracking engines is ordered - it’s not union, it’s “try left first”. the order of branches changes the result, which means | is not commutative. a|b and b|a can give different matches.
Фото: Toby Melville To Match Special Report / Reuters
,这一点在体育直播中也有详细论述
«Все равно они планируют ввести ограничения». Путин допустил прекращение поставок газа из РФ в Европу в ближайшее время01:26
Раскрыты подробности похищения ребенка в Смоленске09:27