Regex Quickies with Wiktor Stribiżew
Welcome to Regex Quickies! I am Wiktor Stribiżew, a regular expression and coding passionate, a StackOverflow regex tag addict, and I am all about teaching you various regex tricks, starting with most basic and then more advanced patterns.
If you love coding challenges and want to harness the power of regex patterns, you're in the right place!
Common video structure:
- Coming up with pattern requirements (regex is a rule-based thing, if there is no rule to match a string, you can't use regex here)
- Building the pattern (I use regex101.com as the primary regex testing site, rubular.com Onigmo regex and regexstorm.net for .NET regex)
- Checking if all works as expected
I am trying to make the videos interesting and hope you will have fun learning with me.
If you like the videos, please do not forget to like them and subscribe. Also, feel free to buy me a coffee at https://www.buymeacoffee.com/wstribizew if you like what I am doing.
Matching custom numeric ranges
Numeric range regex generator
Consecutive lookarounds
Basic regex constructs overview (Part 1)
Writing cleaner regular expressions
Matching dots or commas as (not) part of numbers
Skipping matches in specific contexts (with SKIP & FAIL verbs)
Zero-width assertions
Regex tries, or efficient alternations in regex
Dynamic adaptive word boundaries
Branch reset groups - capture different patterns into same groups
Why "(?:\s|.)*" is a bad pattern to match any character including line breaks
Extracting multiple matches in a Notepad++ document
Swapping multiple values using conditional replacement patterns in Notepad++
Replacing exact number of character occurrences
A SO common question: Why does "\d*" find a match in "abc"?
Word boundaries in regex
Swapping parts of a string
Fixing catastrophic backtracking in a commonly used email regex
\G anchor use cases
Validating strings with comma-separated values (with no leading/trailing separators)
Limit the length of the whole string matched with a specific pattern
Extracting trimmed digit sequences between pipes
Regex flavors in R language
Replacing whitespaces in-between two different characters with a hyphen
Backtracking in regular expressions
Matching words between whitespace characters or start/end of string
Matching multiline strings between two strings, or how to match across lines
Removing non-numeric characters other than dots and commas from a string
Validate HH:MM:SS/HH:MM time string format