Jump to content

using patterns in preg_match ?


Go to solution Solved by garyed,

Recommended Posts

I've been trying to find some sort of tutorial on how to come up with search patterns for a function like preg_match. 

I was hoping someone here could point me to a site with a tutorial so I don't have to do a search every time I need to find a particular pattern. 

I don't need any specific search pattern right now but it's frustrating not having a clue on how to come up with one.

Link to comment
https://forums.phpfreaks.com/topic/327009-using-patterns-in-preg_match/
Share on other sites

  • Solution
10 hours ago, maxxd said:

I'm not awesome with RegEx in general, but I typically use https://regexr.com/ as a playground with decent documentation.

Thanks,  that's exactly what I needed. 

I thought I had posted in the wrong forum because I had no idea what REGEX was or meant. 

In all the years I've been playing around with PHP, I hardly ever used regular expressions & I didn't even know that is what they were called either. 

 

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.