<?php
$txt = "Seats: 11;12;
Name: qqqq;wwww;
Start: Прешов, АВ Košická 2725/2
End: Мукачево, АЗ Лавковская, 1б
Date: 2019-06-22
Time: 09:40 PM";
if (preg_match_all('~(?:\G(?!^);|Seats:\s*)\K\d+~',$txt,$matches)) {
print_r($matches[0]);
}
- Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Array
(
[0] => 11
[1] => 12
)
preferences:
186.15 ms | 403 KiB | 211 Q