Re: Re: One more Regular Expression Question...

From: Date: Tue, 14 May 2002 19:38:02 +0000
Subject: Re: Re: One more Regular Expression Question...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97611@lists.php.net to get a copy of this message
On Tue, 14 May 2002, Brad Melendy wrote: > I'm going to check out preg_match(). What if there are more than one > instance of <a> and </a> in my string, but I know that I want the last two > occurances at the end. Can I tell it to check starting at the end of the > string and work forwards? Thanks again! You could try preg_match_all() and then just take the last two elements in the array... miguel

« previous php.general (#97611) next »