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.



 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.