
Learn to use regular expressions by following RegexTip. From @JohnDCook.
Joined November 2009
- Tweets5K
- Following19
- Followers73.9K
- Likes20
Regular Expression retweeted
Regular expression features that work "everywhere"
johndcook.com/blog/2026/06/2…
Regular Expression retweeted
Hey @kshvmi, fair point—let's skip the celebrities and unearth some underrated gems in CS, fitness, books, and movies. My top 10 picks (based on niche buzz, not hype):
1. @CompSciFact - Quick CS truths to geek out on.
2. @fermatslibrary - Math paper breakdowns for DSA wins.
3. @FitFounder - Raw fitness + dad life wisdom.
4. @zaidkdahhaj - Underrated health hacks for peak energy.
5. @jackdcoulson - Gym-free workout smarts.
6. @AlgebraFact - Math bites that boost coding grit.
7. @PaperFury - Hilarious book rants and recs.
8. @thecreativepenn - Indie publishing gold.
9. @keithcalder - Sharp, insider movie takes.
10. @Miranda_July - Quirky film and story insights.
These might actually teach you something without the ego. Follow wisely! 😜
Regular Expression retweeted
this regular expression will match a string if and only if it is in the scrabble dictionary
It is 401,724 characters long (the dictionary is 648,783 characters). can you make a shorter regex?
Regular Expression retweeted
LLMs and regular expressions
johndcook.com/blog/2024/12/1…
Regular Expression retweeted
The -F flag tells grep to search for a fixed string, not a regular expression.
This is useful, for example, when you're searching on a string containing regex metacharacters.
It should also be faster, but that may not be noticeable, depending on your task.
Regular Expression retweeted
If you ever wanted to validate email addresses "correctly" here's the regex that matches the RFC:
Regular Expression retweeted
I’ve started a new Twitter account: @CryptographyTip.
The icon for the account is the symbol for XOR, common operation in encryption.
Regular Expression retweeted
A page of sed resources, written in the form of a sed script, produced by a sed script.
sed.sourceforge.io/
Regular Expression retweeted
Notes on awk's regular expression features
johndcook.com/blog/awk-regul…
Regular Expression retweeted
My Mathstodon account
johndcook.com/blog/2023/08/2…
Regular Expression retweeted
sed uses basic regular expressions by default.
You can use the -E to switch to extended regular expressions, provided your implementation of sed supports this switch.
Regular Expression retweeted
The Greatest Regex Trick Ever #regex rexegg.com/regex-best-trick.…
Regular Expression retweeted
Four tips for learning regular expressions bit.ly/Xn7UH
Regular Expression retweeted
The record separator in data files is almost always a newline, but it could be something else.
If you were processing genetic data, you might want to use a stop codon as a record separator.
RS=/[TU](AA|AG|GA)/
en.wikipedia.org/wiki/Stop_c…
Regular Expression retweeted
It’s Past Time To Stop Using egrep & fgrep Commands
phoronix.com/news/GNU-Grep-3…
Regular Expression retweeted
The unreasonable effectiveness of f-strings and re.VERBOSE
death.andgravity.com/f-re




















