Hacker News · @ycombinator
37 followers · 3046 posts · Server rss-mstdn.studiofreesia.com
Mark Gardner ‍:sdf: · @mjgardner
714 followers · 4949 posts · Server social.sdf.org

@profoundlynerdy I don’t know anything about ’s internals, but Is there any conceivable way for a language-neutral subset of to be based on or share its code rather than reimplement them?

The subset might omit things like code interpolation. Or is it all-or-nothing?

It would be a nice teaser for the full power of Raku grammars, kind of like how for Windows was ’ offer of “a glass of water to somebody in hell.” a.co/5J0CTSL

#rakudo #rakulang #regexes #itunes #stevejobs

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
714 followers · 4949 posts · Server social.sdf.org

@profoundlynerdy I don’t think other languages *have* “ripped off” and grammars. The point of a notional “RCRE” library would be to enable that.

#rakulang #regexes

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
704 followers · 4719 posts · Server social.sdf.org
Mark Gardner ‍:sdf: · @mjgardner
691 followers · 4359 posts · Server social.sdf.org

@malwareminigun @jernej__s has readability affordances for that nothing else can touch: perldoc.perl.org/perlre#%2Fx-a

#perl #regexes

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
678 followers · 4277 posts · Server social.sdf.org

Congratulations @siegel and @bbedit for another great feature story on the . "Where Respect Is Due," indeed!

apps.apple.com/us/story/id1435

Here are some earlier stories:

• Why it's the of choice for , , , and more: apps.apple.com/us/story/id1433

• Tips for prose : apps.apple.com/us/story/id1451

• Learn and experiment with for finding and modifying text in your actual work—safely! apps.apple.com/us/story/id1485

#mac #appstore #bbedit #texteditor #coding #writing #datascience #writers #regularexpressions #regex #regexes

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
661 followers · 4097 posts · Server social.sdf.org

@regehr @commodore @dev There is even a (low-severity, a/k/a “cruel”) policy to discourage everything but $_, @_, $], and numbered capture variables: metacpan.org/pod/Perl::Critic:

metacpan.org/pod/Perl::Critic: already protects you against the performance-sapping $`, $&, and $' match variables

And you can configure your own prohibited list with metacpan.org/pod/Perl::Critic:

#perlcritic #regularexpression #perl #regex #regexp #regexes #regexps

Last updated 1 year ago

Mark Gardner ‍🤑 · @mjgardner
496 followers · 2089 posts · Server social.sdf.org

@Codely @drupler It helps to build your complicated in pieces and store them in separate variables. You can then test them in isolation and not be confused when you concatenate them together for your actual matching.

Both and also support named capture groups if you’re doing replacements. They’re a lot more readable.

Also, PHP’s -based engine has a PCRE_EXTENDED flag that lets you add whitespace, newlines, and comments.

#regularexpressions #php #javascript #pcre #regexes #regexps

Last updated 2 years ago

Mark Gardner ‍🤑 · @mjgardner
424 followers · 1616 posts · Server social.sdf.org
Mark Gardner ‍🤑 · @mjgardner
416 followers · 1569 posts · Server social.sdf.org

@sjn @cb 99% of the “ is line noise” complaints are because of unformatted . Every language worth anything eventually supports them, but only @Perl (and , earlier) makes them first-class citizens. And with Perl you can format and comment them for readability: perldoc.perl.org/perlretut#Emb

We format the rest of our code for humans. Why not ?

can warn against bad regexps: metacpan.org/search?size=200&q

#perl #regularexpressions #awk #regexps #perlcritic #regex #regexes #programming #coding #softwaredevelopment

Last updated 2 years ago

Ian Neill · @ilneill
104 followers · 1023 posts · Server mastodon.ie

Oh yes! Just what I need before I deliver a training session on

#regexes #acdc #pwrup

Last updated 2 years ago

Ian Neill · @ilneill
103 followers · 1022 posts · Server mastodon.ie

One of my goto books for . This is the Nov '97 edition that I sought out after I read a review that said it was a good edition for too. Referring to it right now...

#regexes #python

Last updated 2 years ago

Mark Gardner 🧾 · @mjgardner
328 followers · 720 posts · Server mastodon.sdf.org

Remember when wasn’t all about “durr hard,” “hurr can’t exit ,” and other admissions of stupidity?

#programming #humor #memes #regexes #vim

Last updated 2 years ago

Raineer · @raineer
86 followers · 418 posts · Server frontrange.co

Shot in the dark, mastocrew - I keep trying to get used to but there is one killer feature in which it just doesn't seem to have.

"Quick Add Text", or Command-D (Mac), Ctrl-D (Linux) is just the best.

Does anyone know how to activate something like this in ?

Yes, has all I could need with sub ; this is for a different use case.

And to round out the hashtags, I've never launched

#bbedit #sublimetext #vim #regexes #emacs

Last updated 2 years ago