Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
September 30, 2005, 6:55 pm
rate this thread
I would like to parse an html file containing several link with userid
in order to retrieve all userid and put them into an array.
Here is what my html looks like :
...r"><a href="userprofile.php?userid=346047" ><img s...
And want : array("346047", ...);
I am playing with RegEx without success.
Do you have an idea ?
Thanks a lot for your help.
Re: Regular expressions to get userid in an html file
$YourHtmlCode, $RegTable) should help you I think.
I didn't test it. Maybe you'll have to escape the <, > and " characters.