techman41973 Posted July 4, 2013 Share Posted July 4, 2013 I am hosting a forum running PHPBB software (written in PHP). I added a 3rd party modifiction to my forum, that allows the user to add a link to their facebook page in their profile. There is one line of code that checks the pattern of what the user enters in this text field, and displays an error if what the user enters doesn't meet the required pattern or format. I'm been frustrated trying to understand this line of code and the specific pattern it's testing for. I can't find any PHP reference page to help me intrerpret the pattern it's testing for and also help me change it to my preferred pattern. I'd like to modify the above line of code to reject any entry that doesn't begin with http://www.facebook.com/ I would greatly appreciate some help with this. Link to comment https://forums.phpfreaks.com/topic/279850-need-help-with-pattern-matching-in-arrays/ Share on other sites More sharing options...
cpd Posted July 4, 2013 Share Posted July 4, 2013 You've not posted any code. Link to comment https://forums.phpfreaks.com/topic/279850-need-help-with-pattern-matching-in-arrays/#findComment-1439385 Share on other sites More sharing options...
techman41973 Posted July 6, 2013 Author Share Posted July 6, 2013 Sorry, not sure why it didn't get posted. [/ic] Link to comment https://forums.phpfreaks.com/topic/279850-need-help-with-pattern-matching-in-arrays/#findComment-1439614 Share on other sites More sharing options...
cpd Posted July 6, 2013 Share Posted July 6, 2013 You've not posted any code. Link to comment https://forums.phpfreaks.com/topic/279850-need-help-with-pattern-matching-in-arrays/#findComment-1439626 Share on other sites More sharing options...
boompa Posted July 6, 2013 Share Posted July 6, 2013 You may need to attach it as a file, because we're definitely not seeing anything here. Link to comment https://forums.phpfreaks.com/topic/279850-need-help-with-pattern-matching-in-arrays/#findComment-1439634 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.