I have a series of names like this
Duck/Donald
Mouse/Minnie
these names are in a longer string of data which I'm using the following Preg_match to find them, it works well for all names however some names are like this
F/Duck/Donald
These ones I can not find.
How can I pick these ones up?
if (preg_match('# [A-Z/]{11}#', $Name, $m)) {
$Name = str_replace(" ", "", $m[0]);
} elseif (preg_match('# [A-Z]{11} #', $Name, $m)) {
$Name = str_replace(" ", "",$m[0]);
} elseif (preg_match('([A-Z]+/[A-Z]+)', $Name, $m)) {
$Name = str_replace(" ", "",$m[0]);
}