That particular pain in realizing that you probably *should* rewrite that 200 line function into 3-4 ... dozen regular expressions.

to keep it from turning into a 600 line function.

#regex #programming #gamedev

正規表現テスターを自作した(リアルタイムハイライト + キャプチャグループ表示 + 日本語Unicode対応)
https://qiita.com/sakutto-panda/items/6502e587d933c33723e5?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items

#qiita #正規表現 #TypeScript #regex #React #個人開発

正規表現テスターを自作した(リアルタイムハイライト + キャプチャグループ表示 + 日本語Unicode対応) - Qiita

なぜ作ったか 業務中、正規表現のパターンを試したくなったときに毎回 regex101 や RegExr を開いていた。どちらも機能は十分すぎるほどあるが、 英語 UI で目が滑る 広告がそこそこ重い 機能が多すぎて「g フラグを今オンにしてるか」が一瞬で見えない 日本語...

Qiita
🤖✨ Introducing AISlop: the miraculous command-line tool that bravely sifts through the AI-generated spaghetti code you've been pretending to understand. 🎉 With 40 rules and 7 languages, it promises to catch the digital excrement left behind by your 'intelligent' assistants—all without the help of an LLM, because who needs advanced AI when you've got good ole' #regex. 🙄🚀
https://github.com/scanaislop/aislop #AISlop #AItools #commandline #programming #HackerNews #ngated
GitHub - scanaislop/aislop: Catch the slop AI coding agents leave in your code. 40+ rules, 7 languages, sub-second, deterministic, no LLM. MIT.

Catch the slop AI coding agents leave in your code. 40+ rules, 7 languages, sub-second, deterministic, no LLM. MIT. - scanaislop/aislop

GitHub

I'll post this here on the odd chance that someone is good with #SublimeEditor and/or #regex

I'm having issues parsing a vasm error message because the regex capture groups don't return results in the correct order.

https://forum.sublimetext.com/t/capturing-group-order-for-result-file-regex/78658

#SublimeText

Capturing group order for result_file_regex

When parsing errors such as error 2 in line 1741 of "src/Wonderland.s": unknown mnemonic <dasdvx> I’m currently using this regular expression in my panel’s result_file_regex: panel_settings.set('result_file_regex', r'^error (?:\d+) in line (\d+) of "([^"]+)": (.+)$') which captures all the right bits but in the wrong order (clicking on the error tries to open the file 1741). How do I control the order in which Sublime Text parses the regex’s results? (this was already asked here and here but...

Sublime Forum

I once again need to mention how much I love regular expressions. Just wrote one that takes a VTT file and gives the first and last timestamps of groups of consecutive segments with the same speaker (e.g., Alice spoke from 02:31 to 17:03, then Bob spoke from 18:24 to 26:59).

#Regex

Regex ist für mich so ein Thema, bei dem ich innerlich erstmal bremse. Nicht, weil es grundsätzlich schlecht wäre, sondern weil es sehr leicht ist, etwas hinzuschreiben, das irgendwie funktioniert, aber niemand im Team später noch sauber lesen oder sicher beurteilen kann. Genau das ist das Probl

https://magicmarcy.de/regex-in-java-wann-es-hilft-und-wann-du-es-lassen-solltest

#Programming #Regex #Java #Ausdruck #Coding #Muster #Pattern #Zeichenkette #Regeln #Werkzeug

Regex in Java: wann es hilft und wann du es lassen solltest | magicmarcy.de

Regex ist für mich so ein Thema, bei dem ich innerlich erstmal bremse. Nicht, weil es grundsätzlich schlecht wäre, sondern weil es sehr leicht ist, etwas hinzuschreiben, das irgendwie funktioniert, aber niemand im Team später noch sauber lesen oder sicher beurteilen kann. Genau das ist das Problem. Ein Regex kann auf den ersten Blick kompakt wirken und trotzdem fachlich danebenliegen oder mehr matchen als gedacht.

magicmarcy.de

Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.

https://regex101.com/r/iHvpcJ/1

I'm trying to return the powered state of the wifi device from connman output. It seems like what I have here in regex101 should be returning the true or false state, but when I try to use the regex with grep I'm getting a warning:

`grep: warning: stray \ before N`

I'm struggling to figure out what I need to change to make it work with grep.

regex101: build, test, and debug regex

Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.

regex101

I lost count of how many reported 2-line entries I've just turned into single-row for ingestion to a new table.

#Notepad++ was my first love, but #KATE (K Advanced Text Editor) has replaced it.

#Regex really is a chainsaw...with no idle.

Tengo una hoja de cálculo con casi 640 celdas con contenidos de este tipo:

Explicación excelente (4)
blah (3)

Quería extraer en número, puntuaciones de 0 a 4, para poder hacer medias y eso. Ha sido extraordinariamente fácil gracias a mis reducidisísimos conocimientos de expresiones regulares:

```
=REGEX(C3;”[0-4]”)

y ¡chimpún! números extraidos.

#regex #libreoffice #hojadecálculo

Apparently, someone decided that 2021 was too short on pointless projects and crammed an entire #chess engine into a regex-based monstrosity 🤯. Because clearly, what chess *really* needs is a convoluted labyrinth of 84,688 regular expressions for that authentic "what am I doing with my life?" experience ♟️.
https://nicholas.carlini.com/writing/2025/regex-chess.html #regex #programming #humor #technews #HackerNews #ngated
Regex Chess: A 2-ply minimax chess engine in 84,688 regular expressions

I wrote a (list of) regular expressions that will play a (not very good) chess game by running a 2-ply minimax search.