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 Quote 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. Quote 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+ Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/161036-solved-quick-help/#findComment-850001 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.