Follow

@puppy@sleeping.town it's because regex was designed by programmers, where the notion of "a word" is a bit less useful

(although as a linguist I could easily go on a rant about how the idea of "a word" is actually.... really complex and weird)

@lizardsquid @puppy I'm a programmer who frequently works with regular expressions. And I've got to say... they're even worse than that.

Spaces aren't always enough. It won't match if it's at the end of a sentence (a . isn't a space) or the start of a line (nothing before it). Of course, there are ways depending on which regex dialect...

Ah. Yes. There are also something like half a dozen similar but slightly incompatible standards for writing them, and they all do word boundaries differently.

@lizardsquid @puppy Unless your application is used exclusively by programmers, regular expressions have absolutely no business getting anywhere near your end users. Mastodon needs a sane muted words list.

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!