3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $re = "/((F|A|E)\\d{6})\\s*([^\\n\\r\\n]*)/"; $str = "*** NEUBUCHUNG ***\n 11.08.15 HAJ FNC X3 2830 14:25 17:50\n 18.08.15 FNC HAJ X3 2831 18:40\n FNC075 Four Views Monumental 9004-541 Funchal\n 1 Doppelzimmer 2Erw. Halbpension\n \n \n F882129 HERR KLAMKA, DANIEL\n F882129 FRAU NITSCHKE, SARAH"; preg_match($re, $str, $matches); print_r($matches); ?>
based on slDor
Output for 4.3.0 - 7.2.0
Array ( [0] => F882129 HERR KLAMKA, DANIEL [1] => F882129 [2] => F [3] => HERR KLAMKA, DANIEL )