frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Regular expressions that work "everywhere"

https://www.johndcook.com/blog/2026/06/23/regex-everywhere/
20•ColinWright•2d ago

Comments

Resonix•2d ago
why I built this
greazy•58m ago
I think you forgot to post a link?
MathMonkeyMan•1h ago
I've always been a stickler for being specific about which regex language your thing accepts, and whether it is to match any substring, or a prefix, or a suffix, or the whole thing, or a line, or a substring of a line, or whatever.

Here are some of the [more popular][1] ones, and then there are PCRE and Python.

It took me a while to learn that some of the older ones you see in e.g. grep are [specified by POSIX][2].

[1]: https://cppreference.com/cpp/regex#Regular_expression_gramma...

[2]: https://pubs.opengroup.org/onlinepubs/009696899/basedefs/xbd...

LoganDark•57m ago
> the special characters . * ^ $

These already do not work in many tools which require those special characters to be escaped to have any meaning. An easy example is GNU grep, sed, etc. which use BRE ("Basic Regular Expressions") by default. The article mentions GNU coreutils but does not explain that `-E` is required to fix that behavior.

agnishom•44m ago
A while ago, we wrote a paper about finding regexes which match the same way in both the greedy semantics and the leftmost maximal semantics.

https://par.nsf.gov/servlets/purl/10534654

JdeBP•42m ago
The author is circling around, but not quite reaching, a statement that POSIX Basic Regular Expressions work everywhere, with the caveat that that not everyone has caught up with version 8 of the Single Unix Specification, which has slightly changed BREs.
quotemstr•21m ago
It drives me nuts when a developer documents something or other as being a "regex" but doesn't mention which dialect of regulation expression he's talking about. This habit is particularly common in the Rust, JavaScript, and Python communities, which seem to forget that their language's regular expression language isn't universal.

AMD Strix Halo RDMA Cluster Setup Guide

https://github.com/kyuz0/amd-strix-halo-vllm-toolboxes/blob/main/rdma_cluster/setup_guide.md
45•jakogut•2h ago•2 comments

Show HN: Decomp Academy – Learn to decompile GameCube games into matching C

https://decomp-academy.dev
34•jackpriceburns•1h ago•10 comments

Marfa Public Radio Puts You to Sleep

https://www.marfapublicradio.org/podcast/marfa-public-radio-puts-you-to-sleep
12•reaperducer•31m ago•0 comments

Choosing a Public DNS Resolver

https://evilbit.de/dns-resolver-guide.html
72•pawal•4h ago•24 comments

Anonymous GitHub account mass-dropping undisclosed 0-days

https://github.com/bikini/exploitarium
688•binyu•12h ago•273 comments

OpenRA

https://www.openra.net/
598•tosh•14h ago•120 comments

AI learns the “dark art” of RFIC design

https://spectrum.ieee.org/ai-radio-chip-design
197•Brajeshwar•3d ago•130 comments

Enhancing X11 Application Security with LXC

https://dobrowolski.dev/article/enhancing-x11-application-security-with-lxc/
38•shirozuki•5h ago•11 comments

Regular expressions that work "everywhere"

https://www.johndcook.com/blog/2026/06/23/regex-everywhere/
20•ColinWright•2d ago•7 comments

Response to AI slop is from Robin Williams

https://jayacunzo.com/blog/your-move-chief
44•herbertl•1h ago•14 comments

Space Shuttle Endeavour's 20-story vertical display

https://californiasciencecenter.org/about-us/samuel-oschin-air-and-space-center/go-for-stack
19•uticus•1d ago•1 comments

Fintech Engineering Handbook

https://w.pitula.me/fintech-engineering-handbook/
490•signa11•16h ago•163 comments

The case for physical media ownership

https://dervis.de/physical/
379•cemdervis•15h ago•250 comments

Turn your site into a place people can bump into each other

https://cauenapier.com/blog/townsquare_release/
165•eustoria•9h ago•77 comments

Suspicious Discontinuities (2020)

https://danluu.com/discontinuities/
216•tosh•13h ago•65 comments

Asian AI startups launch Mythos-like models

https://techcrunch.com/2026/06/27/asian-ai-startups-launch-mythos-like-models-as-anthropics-expor...
155•bogdiyan•13h ago•137 comments

How do you keep Web MIDI from crashing a 1983 synthesizer?

https://knob.monster/how-do-you-keep-web-midi-from-crashing-a-1983-synthesizer
27•halfradaition•3d ago•13 comments

IP Crawl: Living atlas of open webcams discovered on the public internet

https://ipcrawl.com/
251•arm32•7h ago•128 comments

Reducing tick density along recreational trails in Ottawa, Canada

https://www.sciencedirect.com/science/article/pii/S1877959X26000476
161•bushwart•3d ago•92 comments

Post-Mythos Cybersecurity: Keep calm and carry on

https://cephalosec.com/blog/cybersecurity-in-the-post-mythos-era-keep-calm-and-carry-on/
136•Versipelle•12h ago•40 comments

DSpark: Speculative decoding accelerates LLM inference [pdf]

https://github.com/deepseek-ai/DeepSpec/blob/main/DSpark_paper.pdf
732•aurenvale•17h ago•306 comments

Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work

https://github.com/kageroumado/adrafinil
93•kageroumado•6h ago•56 comments

What Ozempic does to the gut-brain axis

https://www.psychologytoday.com/au/blog/mood-by-microbe/202606/what-ozempic-does-to-the-gut-brain...
89•randycupertino•5h ago•188 comments

Michigan spent $1.8B and only created 602 jobs

https://www.msn.com/en-us/money/general/michigan-spent-1-8-billion-and-only-created-602-jobs/ar-A...
128•littlexsparkee•5h ago•56 comments

One man, two kernels, and a lot of RISC-V

https://www.theregister.com/software/2026/06/26/one-man-two-kernels-and-a-lot-of-risc-v/5262858
80•LorenDB•1d ago•6 comments

Supabase (YC S20) Is Hiring for Multigres

https://jobs.ashbyhq.com/supabase/2e718684-4f75-4a99-8d6b-3b6bd44e4228
1•awalias•9h ago

Paradise Revisited: What Darwin Saw in the Galápagos

https://www.theatlantic.com/magazine/2026/08/writers-way-galapagos-charles-darwin-travel/687480/
39•benbreen•3d ago•1 comments

The eerie interface of man and machine (Life Magazine, October 1967)

https://blog.jgc.org/2026/06/the-eerie-interface-of-man-and-machine.html
30•Brajeshwar•3d ago•1 comments

How H-E-B became Texas' most beloved brand (2024)

https://texashighways.com/culture/how-heb-became-texas-most-beloved-brand/
99•NaOH•3d ago•92 comments

Why does kinetic energy increase quadratically, not linearly, with speed? (2011)

https://physics.stackexchange.com/questions/535/why-does-kinetic-energy-increase-quadratically-no...
354•ProxyTracer•1d ago•195 comments