<?php $str = "this/is a random one/two string foo/bar random - string words last/string/to/test"; preg_match_all("/(\w+\/\w+)[\s|$]/", $str, $output); Var_dump($output[1]);
You have javascript disabled. You will not be able to edit any code.