I'm getting names from a XML file of students, the names are like this
JOHN/SMITH
WENDY/ADAMS
I'm getting the name from this string like this (as there is other info on the name node which I want to split it from)
} elseif (preg_match('([A-Z]+/[A-Z]+)', $NameItem, $m)) {
$StudentName = str_replace(" ", "",$m[0]);
}
This works however some students have code in their name like
F/JOHN/ADAMS
HOw can I get a name that have two / in it?