<?php $expression = '(1*2)/(3*4)*100+-10'; var_export( preg_split( '~(-?\d+|[()*/+-])~', $expression, 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ) );
You have javascript disabled. You will not be able to edit any code.