this post was submitted on 14 Apr 2024
328 points (94.1% liked)
linuxmemes
20779 readers
158 users here now
I use Arch btw
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules
- Follow the site-wide rules and code of conduct
- Be civil
- Post Linux-related content
- No recent reposts
Please report posts and comments that break these rules!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I am curious how you'd deal with the ambiguity of contractions vs. ending single quotes. I guess that character between letters can be assumed to be part of the word, but not if it's between a letter and a space, for example. If you ignore contractions, hyphenated words, and accented characters, you could just match on
/[a-zA-Z]+/
.That's the thing, nobody even asks this question.
That would already put you in the top 10% of solutions I've seen so far on this problem.
My confidence in my job security and general programming abilities has skyrocketed after visiting this thread