
Meet the instructor and discover how to engage with this regular expressions for beginners course, set realistic daily goals, and contribute helpfully to discussions while supporting fellow students.
Download the course files and unzip them on Mac or Windows (sevenzip.org if needed). An offline app inside lets you practice regular expressions by opening index.html in your browser.
Explore tools for learning regular expressions, learn about flags or modifiers like case sensitive and global, and see how editors and languages such as JavaScript, PHP, and Python apply them.
Master regular expressions by understanding text patterns, matching, searching, and replacing text with symbols like plus, dollar, and carrot; explore JavaScript and PHP implementations with flags like i and g.
Learn how literal characters match exactly in regular expressions using the JavaScript flavor, with global search, case-insensitive options, and backtracking, demonstrated via a Jira example.
Learn how the dot wildcard metacharacter lets regex match any character, demonstrated with literals like car and price formats, and note it can match any character between elements.
Learn to use escaping in regular expressions to treat metacharacters as literals, including escaping dots and slashes, and apply examples that match specific file names and PHP files.
Explore regular expressions across flavors, referencing the msdn website and the dot net framework, with hands-on examples of matching tabs, new lines, and chaining meta characters.
Explore character sets and ranges in regular expressions, using square brackets, symbols, and ranges like A to Z and 0 to 9 to match specific characters.
Learn the negation meta character by using the carrot symbol to match everything not in a set, and review escaping rules for dash, dot, square brackets, and backslashes.
Explore regex shorthands such as digits, words, and whitespace, and their uppercase counterparts. Negate these shorthands in character sets and combine them in practical examples.
Explore quantifiers in regular expressions, including the asterisk, plus, and question mark, to match zero or more, one or more, or optional previous elements.
Explore repetition and metacharacters in regular expressions, using quantifiers like *, +, and ?, plus braces {n,m} to control digits and exact patterns such as zip codes.
Discover how lazy quantifiers match as few occurrences as possible in regex, contrast them with greedy quantifiers, and use ? with plus, asterisk, and curly braces to control repetition.
Master grouping in regular expressions by using parentheses outside character sets to group patterns, and practice with optional prefixes like un to match both happy and unhappy forms.
Leverage the pipe symbol to express alternation, matching left or right expressions with grouping for clarity. Note left-side precedence and eager matching, and apply quantifiers, escapes, and chaining.
Master nesting with alternation by building grouped expressions, using pipe for alternation, and making parts optional with question marks, across languages PHP, JavaScript, Java, and Python.
Explore anchors in regular expressions, using the caret for the start and the dollar for the end of a string or line, and distinguish line versus string matching.
Explore word boundaries in regular expressions by using the \b and \B metacharacters and the \w shorthand. Learn how these patterns match word characters, non word characters, and string edges.
Master backreferences and capturing groups in regular expressions by learning how grouped expressions save matches in memory, reference them, and perform replacements in JavaScript.
Explore non-capturing group expressions to disable back references in regex, turn off default capturing with ?: and learn how to optimize patterns using non-capturing groups in practical examples.
Learn how assertions drive regex results with positive and negative lookahead to require or exclude matches, such as words preceded by a dash or a comma.
Explore lookbehind assertions in regular expressions, compare positive and negative lookbehind and zero-width positions, and understand cross-language support (PHP, Java, Python, Ruby) and the 1% gap with Unix or JavaScript.
Learn how to use regular expressions with any language by applying Unicode encoding, from single-byte and double-byte encoding to variable-byte encoding, using backslash U with four hex digits.
Learn to use unicode with regular expressions to match symbols and accented characters via backslash u codes, and find references to build robust patterns.
Learn to build and validate a US postal code regex that matches five digits with an optional dash and four digits, using anchors and optional capturing for precise matches.
Explore building a password validation system with regular expressions, using anchors, non-space characters, quantifiers, and lookaheads to require uppercase, lowercase, digits, and symbols within 6 to 20 characters.
Learn to build date matching regular expressions, handling two-digit days and months with dash or slash separators, four-digit years, and using anchors to enforce start-to-end matches.
Wraps up the course and invites you to explore other topics such as JavaScript, PHP, object oriented programming, and Python, while encouraging a five star review and helpful feedback.
What this course is?
This course is universal, meaning that the regular expression material you learn here will be applicable in most if not all regular expression engines.
Of course there will be some variations when we are implementing regular expressions in different engines, let's say PHP over Javascript, but the core fundamentals and how you do regular expression stays the same everywhere.
Regular expressions are also called Regex, Regexp or Regexes, so we will be probably be using this vocabulary since it's easier to pronounce and is what we commonly use in the programming community.
We will learn how to implement regular expressions in Javascript and PHP but these lectures are done for demonstration on how Regexes are used in programming languages.
Who this course is for?
New developers that want to learn regular expressions.
Frustrated developers who had issues learning it before.
Any developer who is serious about their programming career.
Some information about the course structure!
We will start slow with the most basic regular expression functionality, like searching and matching, learning what each of the symbols do and how to use them to do what we need.
After we learn the most basic things, we will start with more complex operations and real worlds solutions. I always try keep the lectures short so that the material is easy to digest.
At the end of every section we are going to have some practice code so that we can re-enforce everything for that section.
See you inside, let's do this!