helvede.net is one of the many independent Mastodon servers you can use to participate in the fediverse.
Velkommen til Helvede, fediversets hotteste instance! Vi er en queerfeministisk server, der shitposter i den 9. cirkel. Welcome to Hell, We’re a DK-based queerfeminist server. Read our server rules!

Server stats:

166
active users

#regex

1 post1 participant0 posts today
Replied in thread

@stilgherrian it’s been a long time since I’ve admin’d a mail server in anger (always in anger… 😜) but I have much recent experience when trying to interact with MTAs & other systems when using plain old plus-addressing that worked perfectly well for decades back when crusty greybeards (👋 honorary greybeard) ran the global infra

the most common / painful variants:

  • sign-up form accepts plus-address email & “completes” the process, but confirmation email never arrives (silently dropped somewhere in the pipeline, I have no way of knowing exactly where) 😩

  • sign-up form has a (crappy) client-side “email address validation” with varying forms of incorrect / incomplete understanding of relevant RFCs, which can almost always be traced back in their web page code to crappy #regex that doesn’t match the full set of RFC-permitted chars 🤬

it’s been so painful that I’ve stopped using plus addressing all together & just reverted to a catch-all email config on my domains (which fortunately my mail provider supports well, I can reply from whatever email something comes in to), as well as masked emails using the provider’s domain depending on use case 💁‍♀️

Replied in thread

@dansup @Gargron Also, the Mastodon filter implementation is anything but powerful since the capability for #RegEx has been removed.
Many things cannot be filtered anymore at all, others need tons of primitive filters what could be accomplished with a single RegEx before.
I still don’t get the reason behind tha removal. It just does not make sense.
#LeSigh

Anybody else download like 1000 TikToks and max out their phones storage and their back up solution? No...yeah...Me Neither.

But if someone did, here's a way to solve it quickly on Android devices.

Since #TikTok names all its video files 32bithexadecimalvalue.mp4, we can us a little #grep and #regex along with #Termux to sort through the #Android #camera roll and delete all the corresponding files.

justinmcafee.com/posts/2025/so

justinmcafee.comJustin McAfee - So You Downloaded a Thousand TikToks

Im trying to provide aliases for #regex definitions so that humans would be able to understand things better scanning my coding.

However, an identifier as terse as `/[^\s\t_-\/\.=<>:]+/` becomes hideously long to describe in english descriptors.

Is there a midpoint reference or shorthand that could serve as a compromise?

I may just provide a vague numbered reference as a hack - but this obviously is ineligent and a recipe for bugs (should I label something else with the same nomenclature)

My PhD student was still feeling uncomfortable with #regex, so I searched and found these awesome regex games that can help you improve your regex-fu and help you have some fun during your daily commute:

regexcrossword.com

the-regex-game.com/?level=inte

and this imho is more geared towards beginners:

regexone.com

Regex CrosswordRegex CrosswordA crossword puzzle game using regular expressions. Earn achievements completing puzzle challenges. Easy tutorials for people new to regular expressions.
Replied in thread

@bortzmeyer Zig is one of three languages I have my eye on!

- #Zig - Procedural and easier to read than C.
- #Haskell - Functional in the extreme.
- #Rakulang - Can be functional, can be procedural, can be OO. Fantastic grammar / #regex model.

I think they complement each other. Every Haskell guy I have introduced to Raku has loved it. I've known a few people who use Zig when they don't feel like being purely functional.

I'm using snac with and am following Hashtags now, and am getting a lot of nice content from specialized Hashtag-Relays. I have now a Problem with unwanted Posts that happen to use Hashtags I want to keep too. But I could Filter them my unwanted Hashtags they use.

Snac supports regex, but now The Question:
how do I know in what form the Regex is expected in my filter_reject.txt?
I want to block a Hashtag case insenitive
/.*#WhatIBlock.*/i
or (?i).*#WhatIBlock.*
or maybe something else? It Seems the web is full of different ways to specify regex.

#snac #snac2 #regex #askfedi

Hello!

I just published a new version of my "Understanding Python re(gex)?" ebook. Learn regex with hundreds of examples and exercises. You can get PDF/EPUB versions for free till 31-Jan-2025:

* leanpub.com/py_regex/c/free
* learnbyexample.gumroad.com/l/p

Or, you can read the book online here: learnbyexample.github.io/py_re

Visit github.com/learnbyexample/py_r for markdown source, example files, exercise solutions, sample chapters and other details related to the book.

Happy learning :)

LeanpubUnderstanding Python re(gex)?Learn Python regular expressions step-by-step from beginner to advanced levels with hundreds of examples and exercises.
Replied in thread

@rail_ @rysiek

Yes, the ability to use regex in filters would definitely provide much more flexibility! I don't think Mastodon even lets you set filters with simple AND logic.

Also, to add to the point made by @dalias about applying filters to certain accounts, I think it would also be great to have filters that can be applied just in the content warning. Such enhancements to the current filter system would give users much more control over their timelines.

@feditips

At a past position, the team I was on had a #regex that was several kilobytes in length in several products. It was the stuff of nightmares! :blobfoxscared: We only managed by splitting their definition strings into multiple pieces that were assembled kind of like a puzzle. :blobfoxgooglymlem:

That said, it was also an amazing learning experience and taught me about things to be extremely careful about, like don’t go too deep with the nesting of groups, and definitely don’t sprinkle deeply nested groups with the Kleene star or anything else that is unbound in length or repetition. :blobfoxscared: :blobfoxdeadinside:

(I still love #RegularExpressions for their power, though. :blobfoxgooglytrash: )

bbs.kawa-kun.comKBBS