Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
Hi everybody, I have the following URL to grab: [url]http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic[/url] I need the 2 ids. But it doesn't seem to work. [CODE=JSP] var url = "http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic"; var exp = new RegExp("^http:\/\/w?w?w?\.?mysite\.com\/profile\.php.?\?id=(\d+)&mode=photo&pic_id=(\d+).*?$"); if (exp.test(url)) { var found = exp.exec(url); alert("found0: "+found[0]+" found1: "+found[1]); } [/CODE] What am I doing wrong ? … |