hello,
i am trying to split a var into 2 other vars, some values will split and some will dont... obviously my regex is wrong, any ideas on how i can make this work?
// these do not split
$var = "-3-115";
$var = "+3-105";
$var = "-7+100";
// these will split
$var = "+6.5-110";
$var = "-5.5-110";
$regex = "/((+|-)([0-9]+.[0-9]+))((+|-)[0-9]+)/";
preg_match($regex, $var, $match);
var_dump($match);