Re: Cut text from a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, August 8, 2007 7:54 am, Daniel Brown wrote:
> On 8/7/07, Richard Lynch <ceo@xxxxxxxxx> 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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux