How to alter the snippet below to fetch the first and second value in between the delimeters?
Output Example: First value: 9100450 and second value: HHkk based on the searchfor value: 12348888
$input = '0123456|BHKAHHHHkjkjkjkjk|12345678|JuiKKK121255
9100450|HHkk|12348888|JuiKKK10000000021sdadad255';
$searchfor = '12348888';
$regexp = "/(?<=" . $searchfor . "\\|)\\w+/m";
$result = preg_match_all($regexp, $input, $matches);
print_r($matches);