<?php $string = 'string1+String-2'; preg_match_all("/([a-zA-Z0-9-_])+\+([a-zA-Z0-9\-_])+/", $string, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.