RE: [PHP] Findng a pattern
| From: | Timothy J Hitchens | Date: | Sat, 05 Oct 2002 04:49:12 +0000 |
| Subject: | RE: [PHP] Findng a pattern | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118933@lists.php.net to get a copy of this message | ||
Are you saying you want to be able to extract the numbers etc?
Timothy Hitchens (HiTCHO)
tim@hitcho.com.au
HiTCHO has Spoken!
-----Original Message-----
From: Henry [mailto:henry@teacake.f9.co.uk]
Sent: Saturday, 5 October 2002 2:36 PM
To: php-general@lists.php.net
Subject: [PHP] Findng a pattern
Dear All,
Excuse my ignorance but I'm STILL a newbie to this aspect of PHP.
$str="Results <b>1</b> - <b>10</b> of about <b>14</b>.
Search took
<b>0.04</b> seconds."
I would like to look for the string above in a buffer of text. However I
would like to find it even if the numeric are different. Furthermore I
would like to know what the values are. Is there a simple way to do
this?
TIA
Henry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php