Re: Cut text from a string
| From: | Richard Lynch | Date: | Thu, 09 Aug 2007 04:50:43 +0000 |
| Subject: | Re: Cut text from a string | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260485@lists.php.net to get a copy of this message | ||
On Wed, August 8, 2007 7:54 am, Daniel Brown wrote:
> On 8/7/07, Richard Lynch <ceo@l-i-e.com> wrote:
>> preg_match('|^(.*)\\((.*)\\)$', $string, $parts);
>
> Lynch, he asked how to manipulate a string, not for you to draw
> him an ASCII topless dancer. ;-P
Yeah, and I think I left out a couple ? to make the .* bits non-greedy...
Oh well.
He'll figure it out with the help of "The Regex Coach" most excellent
program.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?