2022-11-28
|~2 min read
|310 words
I was working on updating my blog and I wanted to have excerpts. Unfortunately, the excerpts were coming in with a lot of additional context…
2022-11-28
|~3 min read
|405 words
When I write regular expressions, I often find myself grouping logic between parenthesis. The issue is that these groups are remembered and…
2022-11-28
|~2 min read
|235 words
Recently I wrote about my regular expression prowess with figuring out a pattern to match on markdown links. When I went to implement it…
2022-11-28
|~2 min read
|313 words
As regular expressions get longer and more complicated capture groups can be nice to organize the different pieces of a match. For example…
2022-11-28
|~4 min read
|685 words
In the Markdown Spec there are several ways to write a link. The most common way I’ve seen / used is a pair of brackets followed by…
2022-11-28
|~2 min read
|321 words
Strings have a built-in method that’s quite handy. Not only can you pass a string to search for (as I did above), but you can also pass…
2022-11-28
|~8 min read
|1402 words
Recently, I was working on a project where the API I was using would sometimes decide to include an offset for the timestamp and other times…
2022-11-28
|~2 min read
|375 words
I continue to be enamored with the power of regular expressions — a feeling that only grows the more I understand them. Today, for example…
2022-11-28
|~1 min read
|103 words
Built into Javascript’s primitive are Regex methods such as and .1 We can use the latter to sanitize inputs. A simply way to clean a phone…
2022-11-28
|~2 min read
|261 words
Finding all instances of an imported module in a large app can be challenging. With the namespace for a module being restricted to the file…