Getting an argument out of a web page

From: Date: Mon, 11 Sep 2006 16:13:13 +0000
Subject: Getting an argument out of a web page
Groups: php.general 
Request: Send a blank email to php-general+get-241600@lists.php.net to get a copy of this message
I'm trying to read a MySpace FriendID out of a web page. If you view the source, you see this is multiple places: .....&friendID=12345&.... What's the simplest way to extract the FriendID and stick it in a variable? Is there a regex that would do this?

« previous php.general (#241600) next »