note 97802 added to function.preg-match
| From: | TomWestervelt at hotmail dot com | Date: | Sun, 09 May 2010 14:06:05 +0000 |
| Subject: | note 97802 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169089@lists.php.net to get a copy of this message | ||
Sample Text String (3) Simply Put, likely favorite
I want to search the string and return (3) Simply Put
Where the 3 can be any number between 1 and 20,
and the text can be multiple words or 1 with a max length of 24
How can I accomplish this with preg_match or
preg_match_all
Thanks
----
Server IP: 69.147.83.197
Probable Submitter: 72.185.50.152
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/97802
Del: integrated -- https://master.php.net/note/delete/97802/integrated
Del: useless -- https://master.php.net/note/delete/97802/useless
Del: bad code -- https://master.php.net/note/delete/97802/bad+code
Del: spam -- https://master.php.net/note/delete/97802/spam
Del: non-english -- https://master.php.net/note/delete/97802/non-english
Del: in docs -- https://master.php.net/note/delete/97802/in+docs
Del: other reasons-- https://master.php.net/note/delete/97802
Reject -- https://master.php.net/note/reject/97802
Search -- https://master.php.net/manage/user-notes.php