<?php $string = 'Herr Max Mustermann Musterstraße 3 12345 City Customer 123456 Date 03.01.2023'; echo preg_replace('/.* Customer (\d+).*/', '$1', $string);
You have javascript disabled. You will not be able to edit any code.