If this is my string : "blablabla (blablabla)". Which regular expression should i use to split the string in such a way that i get returned:
- "blablabla"
- "(blablabla)"
Btw, I want to use the function mb_split.
EDIT The string can alsob be "blablabla blablabla blablabla (blablabla). explode() wouldn't work because of this.
EDIT, this is what i use now:
for example, $name = "blabla blabla blabla blabla (blabla)";
$name = explode(' ', $name);
$last = array_pop($name);
$sentence = null;
foreach ($name as $names) {
$sentence .= $names.' ';
}
$sentence = mb_substr($title, 0, -1, 'UTF-8');