News for hackers. Stuff that matters.
Re:Natural occurring molecule rivals Ozempic in weight loss,... by yesbabyyes on Friday March 07, 2025 @10:42AM (#43291052)
I agree. I'm pretty sure jashkenas got it from Ruby, which got it from Perl, with the `/x` flag (for extended regular expressions).

Later languages have added support for the `x` flag, including C# and Rust. There is also a stage 1 proposal for JavaScript: https://github.com/tc39/proposal-regexp-x-mode

Re:Natural occurring molecule rivals Ozempic in weight loss,... by loginx on Friday March 07, 2025 @10:55AM (#43291194)
Nice roundup, and thanks for sharing that proposal!
Re:Natural occurring molecule rivals Ozempic in weight loss,... by genewitch on Saturday March 08, 2025 @02:17AM (#43298232)
Notepad++ has /x mode as well.

I probably use regexes the most in notepad++