Comparing regular expressions in Perl, Python, and Emacs

Comparing the syntax features of regular expressions in Perl, Python, and Emacs. Several other languages mostly overlap with Python.

John D. Cook | Applied Mathematics Consulting
Comparing regular expressions in Perl, Python, and Emacs

Comparing the syntax features of regular expressions in Perl, Python, and Emacs. Several other languages mostly overlap with Python.

John D. Cook | Applied Mathematics Consulting

Still coupling logic and data in your #Java code? #DataOrientedProgramming with records and #PatternMatching lets you model valid states cleanly and move logic out of your types.

Learn how, step-by-step with @BalaRawool: https://javapro.io/2025/11/11/writing-readable-code-with-algebraic-data-types-and-pattern-matching-in-java/

#ProjectAmber #CleanCode

🚀 **Pattern Matching em Python: Diga adeus às árvores de if/elif verbosos!** 💻

Acabei de publicar um guia técnico completo sobre o **match/case** do Python 3.10+: destructuring de listas, dicts, classes, guards e como ele **aniquila** o switch case tradicional de C/Java. Exemplos práticos para APIs REST, eventos JSON e full-stack!

Por que usar?
- Código 50-70% mais limpo
- Sem fallthrough bugs
- Poder estrutural nativo

👉 Leia agora: https://bolha.blog/riverfount/pattern-matching-em-python-revolucione-seu-codigo-alem-do-switch-case

**Teste um exemplo hoje e comente: qual use case você vai aplicar primeiro?**

#Python #PatternMatching #MatchCase #Python310 #DevTips #Programacao

Pattern Matching em Python: Revolucione seu Código Além do Switch Case Tradicional

Descubra como o pattern matching no Python 3.10+ transforma árvores de if/elif em código declarativo e poderoso, superando limitações do ...

Riverfount

Wer mit Java arbeitet, kennt den Operator instanceof wahrscheinlich schon länger. Er wird genutzt, um zu prüfen, ob ein Objekt einer bestimmten Klasse oder einem bestimmten Typ entspricht. Doch seit Java 16 gibt es eine deutliche Verbesserung: Pattern Matching für instanceof. Diese Neuerung sorgt

https://magicmarcy.de/pattern-matching-for-instanceof

#PatternMatching #instanceof #Java16 #Casting #Compiler #Negationen #Programming #Java

Pattern Matching for instanceof | magicmarcy.de

Wer mit Java arbeitet, kennt den Operator instanceof wahrscheinlich schon länger. Er wird genutzt, um zu prüfen, ob ein Objekt einer bestimmten Klasse oder einem bestimmten Typ entspricht. Doch seit Java 16 gibt es eine deutliche Verbesserung: Pattern Matching für instanceof. Diese Neuerung sorgt nicht nur für kompakteren Code, sondern macht ihn auch sicherer und besser lesbar – besonders für Einsteiger ist das ein echter Gewinn.

magicmarcy.de

NOTE: this was originally published on the older version of this blog, some content may be broken/outdated.

Following a discussion on hacker news I have found myself wondering about regular expressions in ruby 1.9.

In this major version ruby switched its regex engine to oniguruma (and, since a few days ago to a fork of it called Onigmo ).

This engine is widely more powerful than the […]

https://riffraff.info/2012/02/matching-nested-structures-with-regexps-in-ruby-1-9/

Matching nested structures with Regexps in Ruby 1.9 - print "Me"

NOTE: this was originally published on the older version of this blog, some content may be broken/outdated. Following a discussion on hacker news I have found myself wondering about regular expressions in ruby 1.9. In this major version ruby switched its regex engine to oniguruma (and, since a few days ago to a fork of it called Onigmo ). This engine … Continue reading "Matching nested structures with Regexps in Ruby 1.9"

print "Me"

LIKE 'test_%' Matches WHAT?!

LIKE with underscore matches ANY single character! 'test_%' matches 'test1', 'testA', 'test_'. This breaks pattern matching! Watch!

#sql #sqltricks #database #sqltutorial #like #patternmatching #sqlquiz #codingchallenge #sqlshorts #sqlbugs #wildcards #sqlwtf

Even if you’ve read the JEPs—have you used #RecordPatterns to refactor old-school branching logic? @manojnp shows how to turn bloated instanceof trees into readable, idiomatic #Java code with just records.

👉 https://javapro.io/2025/01/15/record-patterns-building-on-java-records/

#Refactoring #PatternMatching #CleanCode

Record Patterns — Building on JAVA Records - JAVAPRO International

Though Records are just constant classes, the actual power of records comes with record patterns and this is about the usage of records.

JAVAPRO International

Wer mit Java arbeitet, kennt den Operator instanceof wahrscheinlich schon länger. Er wird genutzt, um zu prüfen, ob ein Objekt einer bestimmten Klasse oder einem bestimmten Typ entspricht. Doch seit Java 16 gibt es eine deutliche Verbesserung: Pattern Matching für instanceof. Diese Neuerung sorgt

https://magicmarcy.de/pattern-matching-for-instanceof

#PatternMatching #instanceof #Java16 #Casting #Compiler #Negationen #Programming #Java

Pattern Matching for instanceof | magicmarcy.de

Wer mit Java arbeitet, kennt den Operator instanceof wahrscheinlich schon länger. Er wird genutzt, um zu prüfen, ob ein Objekt einer bestimmten Klasse oder einem bestimmten Typ entspricht. Doch seit Java 16 gibt es eine deutliche Verbesserung: Pattern Matching für instanceof. Diese Neuerung sorgt nicht nur für kompakteren Code, sondern macht ihn auch sicherer und besser lesbar – besonders für Einsteiger ist das ein echter Gewinn.

magicmarcy.de

Quer dar um salto na sua programação Python? 🚀 Descubra como dominar o Pattern Matching avançado com guards, padrões OR/AND e saiba evitar armadilhas que podem comprometer seu código!

Este artigo técnico detalhado mostra como refinar seu controle de fluxo com estrutura clara e expressiva — essencial para desenvolvedores que buscam elegância e eficiência.

Leia mais: https://bolha.blog/riverfount/pattern-matching-avancado-em-python-domine-guards-padroes-or-and-e-evite

#Python #PatternMatching #DevTips #Programação

Pattern Matching Avançado em Python: Domine Guards, Padrões OR/AND e Evite Armadilhas Comuns

Desde sua introdução oficial na versão 3.10 do Python, o pattern matching trouxe uma maneira estruturada e expressiva de lidar com fluxos...

Riverfount