I have the following text....
B/H888/QG and I would like to extract the H888 from this. There will always be two forwards slashes encapsulating this.
$subject = "B/H888/QG";
$pattern = '/(.+)/';
preg_match($pattern, $subject, $matches);
print_r($matches);
The best I can get to is the above however this is completely wrong and outputs
H888/QG!