Jump to content

need help with pattern matching in arrays


techman41973

Recommended Posts

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.



 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.