Hi,
I am having problems concatenating two preg expressions into one so that php picks one OR the other. I have looked all over the place and can't see what is going wrong. If anyone can help, that would be great!!
Here is my code
if(preg_match_all('/(\s+[[:alpha:]]{1,3}\s+[[:digit:]]+(\s|$) | \s+[[:digit:]]{1,3}\s+[[:alpha:]]+(\s|$))/Ui',
'in 1988 45 rpm' , $matches)){
print_r($matches);
} else {
echo 'NO';
}
It always echo's no when in I want it to match both 'in 1988' and '45 rpm' as valid strings
Thanx in advance