RegexTip Profile Banner
Regular Expression Profile
Regular Expression

@RegexTip

Followers
75K
Following
20
Media
68
Statuses
5K

Learn to use regular expressions by following RegexTip. From @JohnDCook.

Joined November 2009
Don't wanna be here? Send us removal request.
@RegexTip
Regular Expression
10 years
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
@RegexTip
Regular Expression
7 hours
Look-around in regular expressions matches a LOCATION, not a set of characters.
0
0
2
@theinformation
The Information
1 month
Zach Dell, son of billionaire Michael Dell, thinks he can solve America's energy crisis.
0
1
9
@RegexTip
Regular Expression
1 day
There's one regex implementation that is 100% compatible with Perl, and that's Perl.
0
2
9
@RegexTip
Regular Expression
4 days
A character class with a single character may be easier to read than an escaped special character, e.g. [.] vs \.
0
1
3
@Boxem
Boxem
6 months
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
@RegexTip
Regular Expression
5 days
Emacs does not support Perl-style lookahead/lookbehind expressions.
0
0
3
@RegexTip
Regular Expression
6 days
Capitalize 'foo' or 'bar' using Perl: s/foo|bar/\u$&/
0
2
9
@RegexTip
Regular Expression
8 days
(?i) changes case sensitivity by modifying the regex itself rather than using a processing option like //i in Perl.
0
0
4
@SteebMichele
Michele Steeb
4 days
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
@RegexTip
Regular Expression
11 days
(?i) makes a regular expression case-insensitive. Example: (?i)abc is the same as [aA][bB][cC].
0
1
11
@RegexTip
Regular Expression
12 days
In CSS, ^= means begins with, *= means contains anywhere, and $= means ends with.
0
0
6
@RegexTip
Regular Expression
13 days
CSS has a crude form of regex, selection operators ^=, *=, and $= analogous to the use of ^, *, and $ in regex.
0
0
8
@RegexTip
Regular Expression
14 days
The acronym PCRE stands for 'Perl Compatible Regular Expressions'.
0
0
7
@talperetz_
Tal Peretz
1 day
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
@RegexTip
Regular Expression
15 days
*?, +?, and ?? are lazy quantifiers. The regexp engine will attempt to match as few tokens as possible.
0
1
7
@RegexTip
Regular Expression
18 days
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
@RegexTip
Regular Expression
19 days
Emacs regex escape |, (, and ). For example, (a|b) in Perl becomes \(a\|b\) in Emacs.
1
0
11
@RegexTip
Regular Expression
22 days
To group without capturing, use (?: ... ).
0
0
10
@popsite
Pop Site
11 days
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
@RegexTip
Regular Expression
25 days
“Regular expressions aren’t random jumbles of punctuation—they’re carefully thought-out jumbles of punctuation!” -- The Perl Cookbook
0
4
19
@RegexTip
Regular Expression
26 days
\> represents an ending word boundary and match a position between two tokens. Some engines don't support this.
0
0
7