Regular expressions from scratch: patterns, groups, parsing

10 steps · about 7 h 20 min · Beginner

  1. Regex Learn - Regex Interactive Course (interactive, RegexLearn, 30 min)

    A guided, hands-on first pass over the basics, so the syntax feels familiar before you go deeper.

  2. RegexOne - Learn Regular Expressions - Lesson 1: An Introduction, and the ABCs (interactive, RegexOne, 45 min)

    Short lessons with exercises that make you write patterns yourself and cover characters, repetition, and groups.

  3. GitHub - ziishaned/learn-regex: Learn regex the easy way (repo, GitHub (ziishaned), 25 min)

    A compact written reference for metacharacters, anchors, escapes and lookaheads that you can reread whenever you forget.

  4. Learn Regular Expressions Tutorial (interactive, Parseium, 20 min)

    Applies patterns, quantifiers and groups to data-extraction examples, which points you toward practical parsing.

  5. Learn Regular Expressions: Free Regex Tutorial (tutorial, Scrimba, 2 h)

    Interactive screencasts that walk from basic to advanced regex in JavaScript, where you can edit code and try changes.

  6. RegexOne - Learn Regular Expressions - Javascript (reference, RegexOne, 15 min)

    Shows how to call test, exec and match in JavaScript, so your patterns can run in real code.

  7. Regular Expressions: Regexes in Python (Part 1) (tutorial, Real Python, 1 h 30 min)

    Covers the re module, metacharacters, groups, lookarounds and flags in Python, in more depth than the earlier steps.

  8. Python Re Groups (article, Finxter, 20 min)

    Focuses on capture groups and positive lookahead, the part of text parsing that trips up most learners.

  9. Mastering Regular Expressions Ep. 8: Lookaheads and Lookbehinds: Matching with Context (video, YouTube, 15 min)

    Gives a visual walkthrough of lookarounds in a regex tester, so the tricky ideas make sense by seeing them.

  10. Regex Tutorial—From Regex 101 to Advanced Regex (guide, RexEgg, 1 h)

    A thorough reference for gotchas, style and optimisation once you can already write patterns.