@manwar Both challenges are appropriately solved with #RakuLang #RegEx

The second one is a #OneLiner but almost 🙂

Decrypt string: ```
S:g/[(\d)|(\d\d)\#]/{chr 96+$0}/
```

Goal parser: ```
my %p = '()' => 'o', '(al)' => 'al';
S:g/@(%p.keys)/{%p{$/}}/
```

I was always finding #regex engines intriguing and maybe a bit intimidating, so I decided to implement my own in #rust to understand better how they work. It implements the basic features (grep-like) and the implementation aims rather at clarity than performance (it is not slow, though). It was surprisingly easy to implement and much simpler than I'd imagine, so an interesting journey. I left some more details in README. https://github.com/twolodzko/t-rex
GitHub - twolodzko/t-rex: Regular expression engine implemented using Thompson's NFA

Regular expression engine implemented using Thompson's NFA - twolodzko/t-rex

GitHub

Un peu de ménage dans les pieds de page. Pas la regex du siècle, mais je m'améliore : \* {{([^{]|{[^{]|{{[^{}]+}})+}}\n\* {{([^{]|{[^{]|{{[^{}]+}})+}}\n\* {{([^{]|{[^{]|{{[^{}]+}})+}}

J'avais rédigé un billet de blog au sujet des pieds de page de la Wikipédia francophone https://wikirider.blogspot.com/2025/06/afficher-sur-wikipedia-des-centaines-de.html

#Wikipedia #AutoWikiBrowser #Regex

Woah, this is super useful 😍

🌀 **rgx** — TUI regex tester with real-time matching

💯 Supports multiple engines (Rust, fancy-regex, PCRE2) with live previews

🚀 Syntax highlighting, plain-English explanations, undo/redo, mouse support

🦀 Written in Rust & built with @ratatui_rs

⭐ GitHub: https://github.com/brevity1swos/rgx

#rustlang #ratatui #tui #regex #terminal #devtools #programming #opensource

I don’t know why it’s taken me so long to realise you can put #RegEx into #Obsidian queries, in amongst Obsidian query language.

I like this. Other apps can’t use Obsidian-style queries, but they can usually use the RegEx. So having it right there on the page is a reference for what I’ll need to do that same search, should it be needed, elsewhere.

#PlainText prepper, haha!

Here are some responses.

Throttle the number of requests that can come in from a single IP address.

Block any request that has a 555 in the phone number.

Block any requests that match this Regex (likely SQL statement).

(?i)\b(select|union|insert|update|delete|drop|alter|create|truncat|exec|execute|declare|cast)\b|(--|#|\/\*|\*\/|;|'|"|`|\\x[0-9a-f]{2})|(\b(or|and)\b\s+\d+=\d+)

#Regex #SQLInjection #Security

Second meeting for our "health check" with this particular SaaS and all we have determined is that neither I nor my boss have access to all of the accounts. Rather than my boss reading out the account code numbers from his access list while I look for the same in my list (especially since HE doesn't have access to all of them) - 11 lines of #Python (plus the copy/paste of our dashboard views) and some #RegEX prints out the list of offending accounts without any fuss.

Who would have thought that Python Regex is its own thing, with particular exceptions, patterns and groups.

It's like learning a whole new language. All to match a single group of digits. Thanks, Van Rossum.

#python #code #programming #regex #coding

RE#: how we built the world's fastest regex engine in F#, https://iev.ee/blog/resharp-how-we-built-the-fastest-regex-in-fsharp/.

Excellent blog post!
Very interesting approach with new operations: intersection (&) and complement (~).

Implementation: https://github.com/ieviev/resharp-dotnet
Research paper: https://dl.acm.org/doi/abs/10.1145/3704837 (POP25)

#RegularExpression #regex

RE#: how we built the world's fastest regex engine in F# | ian erik varatalu

ian erik varatalu

Vu qu'il est possible d'indiquer 1 ou 2 thèses, j'essaye d'obtenir la liste à l'aide d'une seule recherche. Un truc du genre (mais reste un problème sans doute au niveau du nombre d'espaces qui varient entre url et =) :

insource:/thesis(_|1_)url += https:\/\/patrimoine/

#Regex #CirrusSearch #MediaWiki