<?php $input_line = "test test | teste test test3 | test test 4"; $result = preg_split('/(?:|\|^)([^|]{3,})(?:|$|\n)/', $input_line); print_r($result);
You have javascript disabled. You will not be able to edit any code.