* Thus wrote Anthony Ritter ([EMAIL PROTECTED]):
> In the following snippet, I'm trying to open and read a URL into the
> variable $contents.
> I'd like to use preg_replace() to return only part of that string beginning
> with say - regional and ending with new - but I get the complete URL string
> returned.
>
> [...]
>
> $newtext= preg_replace("/.*?(regional.*new).*/","1",$contents);


This exact thing was talked about earlier today, with the subject
'Using eregi_replace()'.

http://marc.theaimsgroup.com/?t=105974851200006&r=1&w=2

HTH,

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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

Reply via email to