Regular (Expression) Chess - [Nicholas Carlini] found some extra time on his hands over the holiday, so he deci... - https://hackaday.com/2025/01/07/regular-expression-chess/ #regularexpressions #softwarehacks #games #chess #cpu
Regular (Expression) Chess - [Nicholas Carlini] found some extra time on his hands over the holiday, so he deci... - https://hackaday.com/2025/01/07/regular-expression-chess/ #regularexpressions #softwarehacks #games #chess #cpu
Weekend reading for code obsessives, based on my current work adding semi-full regular expressions to Quamina. Two blog entries, coding recommendation, and a quiz/challenge.
1. QRS: Quamina Regexp Series - https://www.tbray.org/ongoing/When/202x/2024/12/12/Quamina-Regular-Expression-Series
2. QRS: Parsing Regular Experssions - https://www.tbray.org/ongoing/When/202x/2024/12/12/QRS-Parsing-Regular-Expressions
[If you don’t know what a “regular expression is”, please ignore this, and don’t feel bad, because nobody should have to know that.]
I just finished another war against RegEx... Anyone else know the feeling?
#regex #infosec #development #programming #RegularExpressions
(Updated picture to make it say O RLY)
Regular Expressions Finally Come to Microsoft Excel - There are two types of people in the world: those who have no idea what a regular ... - https://hackaday.com/2024/05/24/regular-expressions-finally-come-to-microsoft-excel/ #regularexpressions #softwarehacks #excel #regex
I’ve got an email-parsing project that will require some serious regular expressions.
It’s been a long while since I’ve written any regex. Can anybody recommend any good resources for putting off or avoiding doing it?
#procrastination #RegularExpressions #ReGex
@trochee
It's gratifying to see you making fun of stuff I never got around to learning.
#RegularExpressions #Perl
What else is as incredibly impressive, and at the same time as horrifically ugly, as #RegularExpressions?
By the way, if you need to detect #chords in a text chord chart, here is the #regex you need:
"[A-G](b|#)?(maj|min|m|M|\+|-|dim|aug)?[0-9|11|13]*(sus)?[0-9|11|13]*(add)?[0-9|11|13]*(\/[A-G](b|#)?)?"
edit: any #Musicians out there, can you think of any edge-case chords I should test/adjust to catch? This will be part of a Free chord chart organizer, hit me with your worst.
Any #RakuLang core hackers want to take up this challenge?
#RegularExpressions #RegExps #RegExes #RegEx https://ruby.social/@gd/110718818730295923
@smonff @Perl Y’all know I’m the first to crow about unique #Perl features, but #RegularExpressions’ syntax of ^ for the start of a line or string and $ for the end dates back at least to #Unix co-author Ken Thompson’s rewrite of the `qed` text editor for the #CTSS operating system on the IBM 7090 #mainframe at #BellLabs around 1970. (Perl creator Larry Wall was a teenager at the time.)
A useful little site for testing the equivalence of two regular expressions:
https://bakkot.github.io/dfa-lib/regeq.html
(Source code: https://github.com/bakkot/dfa-lib)
PS. Speaking of regular expressions, I’m sure you‘re all familiar with RegExr so I’m not even mentioning that… Well, I guess I am ;) https://regexr.com/
@sjn @cb 99% of the “#Perl is line noise” complaints are because of unformatted #RegularExpressions. Every language worth anything eventually supports them, but only @Perl (and #awk, earlier) makes them first-class citizens. And with Perl you can format and comment them for readability: https://perldoc.perl.org/perlretut#Embedding-comments-and-modifiers-in-a-regular-expression
We format the rest of our code for humans. Why not #regexps?
#PerlCritic can warn against bad regexps: https://metacpan.org/search?size=200&q=module%3APerl%3A%3ACritic%3A%3APolicy%3A%3ARegularExpressions