[PHP] Getting an argument out of a web page

2006-09-11 Thread Brian Dunning
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? -- PHP General Mailing List

Re: [PHP] Getting an argument out of a web page

2006-09-11 Thread John Nichel
Brian Dunning wrote: 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? Is it always in

Re: [PHP] Getting an argument out of a web page

2006-09-11 Thread Brian Dunning
That did it, thanks! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting an argument out of a web page

2006-09-11 Thread John Nichel
Brian Dunning wrote: That did it, thanks! :) Keep in mind that if the ID is less than 5 digits, it won't match (I don't know where MySpace ID's start). You can change it to something like \d{1,} if you want it to match 1 or more digits. -- John C. Nichel IV Programmer/System Admin