waynew Posted June 5, 2009 Share Posted June 5, 2009 I have a statement like so: if(!preg_match("~http://www\.bebo\.com/Profile\.jsp\?PreviewSkinId=\d+$~",$link) && !preg_match("~http://bebo\.com/Profile\.jsp\?PreviewSkinId=\d+$~",$link) && !preg_match("~http://www\.bebo\.com/Profile20\.jsp\?PreviewSkinId=\d+$~",$link) ) And it's working fine. The thing is, I'm wanting to add another to deal with another possibility !preg_match("~http://www\.bebo\.com/Profile\.jsp\?ArtistMemberId=\d+$&PreviewSkinId=\d+$~",$link) I've also tried !preg_match("~http://www\.bebo\.com/Profile\.jsp\?ArtistMemberId=\d+$\&PreviewSkinId=\d+$~",$link) But none of them work as I'm basically guessing here. The link that I need to be validated is: http://www.bebo.com/Profile.jsp?ArtistMemberId=4153429001&PreviewSkinId=5631914766 Link to comment https://forums.phpfreaks.com/topic/161036-solved-quick-help/ Share on other sites More sharing options...
waynew Posted June 5, 2009 Author Share Posted June 5, 2009 Basically, I just want the link: http://www.bebo.com/Profile.jsp?ArtistMemberId=4153429001&PreviewSkinId=5631914766 to be passed as true. While taking into account that the two GET values will be different each time, but numerical all the same. Link to comment https://forums.phpfreaks.com/topic/161036-solved-quick-help/#findComment-849945 Share on other sites More sharing options...
Ken2k7 Posted June 5, 2009 Share Posted June 5, 2009 In your first attempt, take out the $ after ArtistMemberId=\d+ Link to comment https://forums.phpfreaks.com/topic/161036-solved-quick-help/#findComment-849963 Share on other sites More sharing options...
waynew Posted June 5, 2009 Author Share Posted June 5, 2009 Thanks a million. Solved. Link to comment https://forums.phpfreaks.com/topic/161036-solved-quick-help/#findComment-850001 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.