Become a member
Sign in
Thohidul Islam
Thohidul Islam

Thohidul Islam

9 Following
1 Followers
  • Profile
  • Claps
  • Highlights

Highlighted by Thohidul Islam

See more

From Parsing File Names Using Regular Expressions by James Tan

/([^/]+)_\d+.jpg$
The round brackets here mean that now we are defining a group of characters. Within the group, we define a set of characters with the square brackets notation []. And this set is interested in every possible character except the forward slash (/) character, this is defined by ^/ , where ^ has a ‘negation’ effect. Like before, the plus sign (+) means that there are arbitrarily many characters (that are not forward slashes). To summarise the above, ([^/]+) is looking for a group of characters that do not contain forward slashes.

Claps from Thohidul Islam

See more

How to Stop Overthinking

Darius Foroux

Reflecting on My Failure to Build a Billion-Dollar Company

Sahil Lavingia

How I landed offers from Microsoft, Amazon, and Twitter without an Ivy League degree

Zhia Chong