Urgent.News

What's breaking now, across thousands of outlets.

Tech

Regex Cheat Sheet for Developers: The 20% of Syntax That Covers 80% of Real Work (2026)

Regular expressions have a reputation problem. Show a developer a pattern like ^(?:[a-z0-9!#$%&'*+/=?^_ {|}~-]+(?:.[a-z0-9!#$%&' +/=?^_`{|}~-]+) |"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\[\x01-\x09\x0b\x0c\x0e-\x7f]) ")@(?:(?: a-z0-9 ?.)+ a-z0-9 ?|[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]…

This brief summarizes a guide for developers to master the essential syntax of regular expressions, covering the 20% of regex constructs that handle 80% of real-world tasks. The guide emphasizes the importance of anchors, character classes, quantifiers, groups, and alternation in validating input, extracting data, transforming text, and parsing semi-structured formats.

It also discusses common pitfalls such as greedy vs. lazy quantifiers and catastrophic backtracking, and highlights that regex dialects may vary between programming languages. By mastering the core constructs outlined in the guide, developers can significantly improve their ability to work with regex effectively.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

💅 Keyboard Makeover

I have had this interesting piece of psychedelic looking vinyl for some time. Today I finally found a use case for it. I turned a regular keyboard into a way more fun and exciting one.

RTK vs PPK for Drone Mapping: Which to Use? (2026)

Originally published at gnss-solutions.com . Short answer: Choose RTK when you need centimetre accuracy in real time and you can count on a correction link for the whole flight.

  • RTK offers immediate centimeter-level accuracy during drone flight
  • PPK records raw GNSS observations for post-processing after landing
  • High-end receivers can run both RTK and PPK simultaneously for efficiency

LORE WALK: I built an app that wants you to put it away

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass What I Built I run Next Realm Interactive.

  • LORE WALK app encourages users to put phone away and engage with real world
  • Users take photos of interesting spots, app analyzes and generates lore
  • App compiles Lore Shards into Lore Codex for export as Markdown or image

More from Sunday 11 October →