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.

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.

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.