Shop OBEX P1 Docs P2 Docs Learn Events
Good REGEX Tutorial? — Parallax Forums

Good REGEX Tutorial?

JonnyMacJonnyMac Posts: 9,107
edited 2013-10-26 18:39 in General Discussion
Maybe I'm just tired from a month of Halloween-related programming and projects, but I'm having a heck of a time wrapping my head around RegEx -- can someone point me to a good tutorial?

Thanks.

Comments

  • Mike GMike G Posts: 2,702
    edited 2013-10-26 09:11
    I use this site.
    http://www.regular-expressions.info/quickstart.html

    I do a lot of Google searches to see what other developers have come up with. I also use the Regular Expression tester (Firefox plugin) for testing and saving RegEx expressions. Chrome has a similar RegEx plugins.
  • Ron CzapalaRon Czapala Posts: 2,418
    edited 2013-10-26 09:26
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-10-26 09:34
    Thanks, guys.
  • max72max72 Posts: 1,155
    edited 2013-10-26 14:42
    Mastering regular expressions is a great book. The first chapters describe in detail ins and outs of regex.
    Then there are chapters dedicated to a specific language.
    The first part is very good, clear and detailed. When I first read it I felt like Alice in the rabbit hole... realizing there is so much below the surface. Not a short nor an easy jurney... the first thing you learn is there are 2 families of regex engine, and they behave differently!
    After that there is the pocket sized syntax reference of the big book, nice for a quick check but not standalone.
    Massimo
  • tdlivingstdlivings Posts: 437
    edited 2013-10-26 16:03
    RegxBuddy is excellent from jgsoft. http://www.just-great-software.com/
    Also great tutorial link in RegxBuddy section

    Tom
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2013-10-26 16:21
    I'm glad to see so much interest in regex mastery. Regexes are to software what the counters are to the Propeller: elegant, somewhat obscure, and useful in ways that beg imagination. I got my regex introduction via Larry Wall et al.'s Programming Perl, so it was very language-specific. But the best way to master regexes is just to start using them. Once you get going, you'll wonder how you ever got along without them.

    BTW, here's a regex object I wrote for Spin awhile back:

    -Phil
  • mindrobotsmindrobots Posts: 6,506
    edited 2013-10-26 18:39
    I started playing with REGEX in SQL today.....who knew?!?! ...the best thing is each one is a little different. I think Perl probably has the most expressive implementation (doh!).
Sign In or Register to comment.