DCPHP: Demystifying Regexes in PHP

Have you been scared off by Klingon-looking one-liners in Perl? Do you resort to writing complicated recursive functions just to parse some HTML? Don't!

In this talk, taken from php[architect]'s Advanced PHP class, I'll demystify regular expressions and show you how best to do them in PHP. We'll cover the syntax and functions that make PHP a great text-parsing language, and give you the foundation to learn more.

As a bonus, I'll give you the two cases people often use as examples for regexes that PHP gives you better native ways to accomplish.

Your organizer, Sandy Smith, will be giving the talk. I've been programming PHP for 13-14 years now, and first started web programming in Perl. So I had to get to know regular expressions. Once you get over the initial fear, they are super-useful and make life as a programmer much better.

Join or login to comment.

  • Rich

    I had to duck out before the talk ended, but there were some links thrown around at the start about email lists and other resources outside of Meetup that you guys all use; are there any links someone could share here in the comments? Not sure I got all of it down in my notes.

    March 20, 2014

    • Sandy S.

      Hi Rich--
      The mailing list is big: go to the main DCPHP page on Meetup and click "About Us" to see details for it.

      Also, http://php.net/pcre­ is super useful for regex-specific stuff. I'll also throw out my usual plugs for http://phptherightway...­ as a general resource and http://phpmentoring.o...­ as a great way to connect with both the community and to work on individual skills.

      March 20, 2014

  • Romina

    Hi all! Unfortunately I could not make it to this meet up because I was in Chile, but I wanted to ask real quick if any of you may be in contact with Mid-Level PHP Developers? One of my award winning clients has several roles for developers with 3-5 years of experience to work in Rockville, near Montgomery Mall. The company is worth $7 billion dollars, and is working on an enterprise level migration to a drupal platform. Please spread the word to your network and don't forget about our referral bonuses ($500-1,000) for anyone you refer that gets placed! Thanks in advance and let me know if there is anything I can do in return for you assisting me! [masked]

    March 19, 2014

  • Raphael

    When is the next meet?

    March 13, 2014

  • Sandy S.

    Admittedly, I'm biased. But a very sharp crowd who helped me improve my deck.

    March 13, 2014

  • Sandy S.

    Use the 3R button, not the 3.

    Also, our usual libations provider isn't here, so if you feel like picking up a six pack, feel free.

    March 12, 2014

  • Michael S.

    do you guys normally start right at 6:30...?

    March 12, 2014

    • Sandy S.

      We have mingling at first so you don't have to be on the dot. But we have a lot to cover and have to be out by 8:30 so I hope to not wait too long to begin. :-)

      1 · March 12, 2014

Our Sponsors

People in this
Meetup are also in:

Sometimes the best Meetup Group is the one you start

Get started Learn more
Katie

I'm surprised by the level of growth I've seen since becoming an organizer, it's given me more confidence in my abilities.

Katie, started NYC ICO

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy