101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

475
active users

#regex

0 posts0 participants0 posts today

This is a good overview of how regex works

“Regex is a pattern-matching language; it’s a way to expressively describe patterns that match strings (e.g., words or sentences). For example, say you’re searching your hard drive for an image called foo, but you cannot remember if it’s a JPEG or a ...continues

See gadgeteer.co.za/this-is-a-good

GadgeteerZA · This is a good overview of how regex works“Regex is a pattern-matching language; it's a way to expressively describe patterns that match strings (e.g., words or sentences). For example, say you're
Replied in thread

@PragmaticAndy Ive felt the same myself - pedantry for writing comms helped my coding skills alot.

However, while Python is useful in order to have an experiment it provides a ceiling.

Would this be the case for using #regex for instance?

Or multi dimensional arrays in Gawk?

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

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.

#python #pandas #regex
Ein großer Fallstrick für mich, sind die unterschiedlichen Rückgabewerte.
pandas lässt recht einfach auf den gesuchten Regex als Rückgabewert zugreifen, bei python zusammen mit re braucht es eine extra Schleife, wenn man den Regex als Rückgabewert will.
Der Kleinkram macht immer den Unerschied!