<?php $data = <<<DATA T1 - X1(1), 7 T2 - C2(-9), -15 T3 - Y2(1), 3 T5 - C2(-1), 100 DATA; $result = preg_split("~\s-\s|[(),\s]~", $data, -1, PREG_SPLIT_NO_EMPTY); var_dump($result);
You have javascript disabled. You will not be able to edit any code.