11-09-2007, 02:36 AM
|
#4 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Posts: 165
Thanks: 0
|
As far as i can tell, you are already making "about" optional, if you add brackets around "of", followed by a ? it should have the same effect....
Code:
preg_match('/(of)?\s*?(about)?\s*?\<b\>(.*?)\<\/b\>/',$szGetContents, $aMatches);
I also added a non-greedy space matcher aswell, to take account for the spaces.
|
|
|
|