Home
Language
English
Türkçe
Bahasa Indonesia
About
Privacy Policy
Terms of Service
Pricing
Sign In
Download All
Share
Regular Expression
@RegexTip
Learn to use regular expressions by following RegexTip. From @JohnDCook.
Joined November 2009
19
Following
73.9K
Followers
5K
Posts
Pinned Tweet
Regular Expression
@RegexTip
4 months ago
Four tips for learning regular expressions https://t.co/6Z3EWrMPnO
Regular Expression
@RegexTip
2 days ago
Use explicit whitespace: /\s+/ matches one or more whitespace characters. /[ \t]+/ restricts it to spaces and tabs.
Regular Expression
@RegexTip
3 days ago
Inside a character class, period and question mark are not special. For example, [.?] matches a period or a question mark.
Regular Expression
@RegexTip
4 days ago
Convert a finite automaton to a regular expression: https://t.co/ZbOKLdMquT
Who to follow
Unix tool tip
@UnixToolTip
Tips on Unix utilities and related topics from @JohnDCook.
Algebra Etc.
@AlgebraFact
Tweets about algebra, number theory, and miscellaneous math by @JohnDCook.
Data Science Fact
@DataSciFact
Daily data science tweets from @JohnDCook.
Regular Expression
@RegexTip
5 days ago
Convert a regular expression to a finite automaton: https://t.co/Jmhbm2Gr1T
Regular Expression
@RegexTip
6 days ago
Finding words that can be spelled with chemical symbols using a regex. The regex can either run in linear time or exponential time, depending on the regex engine. https://t.co/B7ylmKQzY8
Regular Expression
@RegexTip
9 days ago
Regex testing tip: include both examples that should match and examples that should not match.
Regular Expression
@RegexTip
10 days ago
Why can't grep find negative numbers? https://t.co/IakwWkDP76
Regular Expression
@RegexTip
11 days ago
For ASCII-only case-insensitive matching, use an ASCII/locale mode if available because Unicode casefolding can be surprising.
Regular Expression
@RegexTip
12 days ago
Very important to keep in mind: different rules apply inside versus outside character classes.
Regular Expression
@RegexTip
13 days ago
\B is the negation of a word boundary. For example, /\Bcat\B/ matches 'scathing' (cat inside) but not 'cat' as a standalone word.
Regular Expression
@RegexTip
16 days ago
The characters * and ? have different meanings in regular expressions than they do in shells. Confusingly similar, but different.
Regular Expression
@RegexTip
17 days ago
Word boundary \b is a position between \w and \W, not a character. /\bcat\b/ matches 'cat' but not 'concatenate'.
Regular Expression
@RegexTip
18 days ago
What we call 'regular expressions' today includes more general patterns than the original definition from the 1950's.
Regular Expression
@RegexTip
19 days ago
The escape character \ makes special characters literal. For example, \. matches a period.
Regular Expression
@RegexTip
20 days ago
Four tips for learning regular expressions https://t.co/6Z3EWrMPnO
Regular Expression
@RegexTip
23 days ago
Regex engines differ on what \s includes (e.g., non-breaking spaces). If exact whitespace matters, specify it explicitly.
Regular Expression
@RegexTip
24 days ago
.* will match as much as it can, but then backtrack if the next atom can also be matched. Backtracking on some engines is slow.
Regular Expression
@RegexTip
25 days ago
Greedy quantifiers (*, +, {m,n}) match as much as possible, then backtrack if needed. Lazy quantifiers (*?, +?, {m,n}?) match as little as possible.
Regular Expression
@RegexTip
26 days ago
Remember: \\ inside a string literal becomes \ in the regex. In Python, raw strings can be cleaner, e.g r'\d+' is easier ro read than '\\d+'.
Regular Expression
@RegexTip
27 days ago
+ means one or more occurrences. For example, /ab+c/ matches 'abc' or 'abbc' or 'abbbbbbc'.
Last Seen Users on Sotwe
Keras Banget
Seen from
Indonesia
ELIZA🍒
Seen from
India
Penikmatjilbaberv2
Seen from
Indonesia
SCATBOOK 💩
Seen from
Canada
Mang Parkir
Seen from
Indonesia
Pedagang Keliling
Seen from
Netherlands
Asupan indo
Seen from
Indonesia
文同
YERLİ VİDEO
Seen from
Turkey
fuck my wife
Seen from
Egypt
Trends for you
1
Bengals
Under 10K tweets
2
Zac Taylor
Under 10K tweets
3
Steelers
Under 10K tweets
4
Dolphins
Under 10K tweets
5
Zay Flowers
Under 10K tweets
6
Kaelon Black
Under 10K tweets
7
Carrick
Under 10K tweets
8
David Moore
Under 10K tweets
9
Cheesecake Factory
Under 10K tweets
10
#skol
Under 10K tweets
Most Popular Users
1
Elon Musk
@elonmusk
241.5M followers
2
Barack Obama
@barackobama
118.8M followers
3
Cristiano Ronaldo
@cristiano
114.5M followers
4
Donald J. Trump
@realdonaldtrump
111.8M followers
5
Narendra Modi
@narendramodi
107.1M followers
6
Rihanna
@rihanna
98.7M followers
7
NASA
@nasa
92.3M followers
8
Justin Bieber
@justinbieber
91.8M followers
9
KATY PERRY
@katyperry
90M followers
10
Taylor Swift
@taylorswift13
84M followers
11
Lady Gaga
@ladygaga
75.5M followers
12
Virat Kohli
@imvkohli
73.5M followers
13
Kim Kardashian
@kimkardashian
70.9M followers
14
YouTube
@youtube
68.8M followers
15
Neymar Jr
@neymarjr
66.5M followers
16
Bill Gates
@billgates
65.3M followers
17
Selena Gomez
@selenagomez
63.1M followers
18
The Ellen Show
@theellenshow
62.2M followers
19
CNN
@cnn
61.7M followers
20
X
@x
60.7M followers
Olivia
Online
✨
⭐
💫