Jump to content

Anyone knows how to use preg_match exactly and could explain please?


yanivkalfa

Recommended Posts

well i realy need this in order to sord a text variable need to make an array with URLS and i know that preg_match is only way of doing so

Could anyone explain me how to use it exactly i mean i was trying to read explantion about it didnt undestood how to use it

thanks again mates.

Link to comment
Share on other sites

first read a tutorial on regex patterns. Such as This Link

Once ya have the concept of how regex patterns are used (it's okay if u dun know how to build em) than get a tool to help u design and test yer regex patterns (Expresso regex Development tool). Okay now ya kinda know the patterns and ya have a tool to build those patterns.

 

Just a note: Expresso dusn use the start/end delimeters as preg functions nor does it have the options after the ending delimeter. so be shure to add/remove them when going from code to expresso and vice versa. Good luck.

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.