Regular Expression
@RegexTip
Followers
75K
Following
20
Media
68
Statuses
5K
Learn to use regular expressions by following RegexTip. From @JohnDCook.
Joined November 2009
Four tips for learning regular expressions
johndcook.com
A few realizations that helped me the most when I was learning regular expressions.
5
109
226
Look-around in regular expressions matches a LOCATION, not a set of characters.
0
0
2
Zach Dell, son of billionaire Michael Dell, thinks he can solve America's energy crisis.
0
1
9
There's one regex implementation that is 100% compatible with Perl, and that's Perl.
0
2
9
A character class with a single character may be easier to read than an escaped special character, e.g. [.] vs \.
0
1
3
New post: Regular expressions that cross lines https://t.co/4rcA7L9bF5
johndcook.com
How to search for a regular expression pattern that may extend across a line break.
0
2
6
You started selling on Amazon to make money... Not to fight with buggy shipment tools and janky spreadsheets. Boxem makes it faster than ever to get back to the things that matter Try it free today:
0
1
12
Emacs does not support Perl-style lookahead/lookbehind expressions.
0
0
3
Using regular expressions in Python
johndcook.com
Summary of how to work with regular expressions in Python. Compares Python with Perl and points out some gotchas.
0
0
4
(?i) changes case sensitivity by modifying the regex itself rather than using a processing option like //i in Perl.
0
0
4
Endless outreach. Endless tents. Endless chaos. This is not compassion. @FreeUpFdn is building a model that restores the lives of the homeless and public safety. Be part of the solution.
3
17
44
(?i) makes a regular expression case-insensitive. Example: (?i)abc is the same as [aA][bB][cC].
0
1
11
In CSS, ^= means begins with, *= means contains anywhere, and $= means ends with.
0
0
6
CSS has a crude form of regex, selection operators ^=, *=, and $= analogous to the use of ^, *, and $ in regex.
0
0
8
The acronym PCRE stands for 'Perl Compatible Regular Expressions'.
0
0
7
Today we're announcing a partnership with Cursor on Cursor Hooks. Hooks let you extend your agents with custom scripts. The Runlayer Hook gives you full visibility, control and security for every MCP call. Engineers just keep shipping.
2
4
10
*?, +?, and ?? are lazy quantifiers. The regexp engine will attempt to match as few tokens as possible.
0
1
7
In Perl, \A matches the beginning of a string and \z matches the end of a string. Removes ambiguity of lines vs strings.
0
1
6
Emacs regex escape |, (, and ). For example, (a|b) in Perl becomes \(a\|b\) in Emacs.
1
0
11
Flatten JSON files so they're easier to grep:
github.com
Make JSON greppable! Contribute to tomnomnom/gron development by creating an account on GitHub.
1
0
10
It's like Linktree, but it looks like a Framer or Webflow site. Claim your free domain before someone else takes it!
0
4
24
“Regular expressions aren’t random jumbles of punctuation—they’re carefully thought-out jumbles of punctuation!” -- The Perl Cookbook
0
4
19
\> represents an ending word boundary and match a position between two tokens. Some engines don't support this.
0
0
7