Potung Thul · @potungthul
27 followers · 1054 posts · Server toot.io

@carnage4life
Darnit, I was going to ask him something about his code. :(

I liked Vim. RIP, Bram.

Anyone have any experience with NeoVim?

Yes, I realize I can continue using Vim even though Bram is dead, but eventually I would want something that continues to be maintained.

And, blasphemous as this may sound, I'm hoping that NeoVim uses PCRE.
I would rather switch over all my vim script to PCRE. I have to use PCRE anyway so might as well use just the one standard.



#pcre #vim #neovim

Last updated 1 year ago

ajaxStardust · @ajaxStardust
3 followers · 39 posts · Server social.vivaldi.net

@mjgardner
Searching you came up as the first result.

#pcre

Last updated 1 year ago

ajaxStardust · @ajaxStardust
3 followers · 30 posts · Server social.vivaldi.net

I was going through some HTML markup/ content where my <h1>,<hx> tags have no anchors/ ID's. pain in the butt to do that manually if i want anchors, It occurred to me: why don't I just process the markup and use the &;h1&; (..contents ...) &;/h1&;
but the (...contents...) atom needs filtering. E.g. "this just in", maybe I want "this_just_in"

That's not really possible w/ is it?

Maybe this is something can do? Im not super fmlr w/ all gnutils

#regex #question #x003c #x003e #pcre #sed

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
691 followers · 4335 posts · Server social.sdf.org

@jernej__s @malwareminigun /\p{Quotation_Mark}solved\p{Quotation_Mark}/

(Note that doesn’t work with software using the Perl “Compatible” library because its support is worse: pcre.org/current/doc/html/pcre)

#perl #regex #pcre #regularexpression #unicode

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
505 followers · 2210 posts · Server social.sdf.org

@barubary @Edent Or , the Perl Compatible* Regular Expression engine, Which is used by and as well as the and HTTP servers, , , and (for which it was originally written).

You can even make your compatible with PCRE instead of other Perl, but you should have a good reason (performance mostly): metacpan.org/pod/re::engine::P

* PCRE2’s own documentation highlights nineteen separate significant differences: pcre.org/current/doc/html/pcre

#pcre #php #rlang #apache #nginx #nmap #postfix #exim #perl

Last updated 2 years 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

Dave Pimlott · @quikkie
14 followers · 53 posts · Server infosec.exchange

Ah yes my old nemesis regular expressions, just typing that made my blood pressure go up.

It's a simple to explain request, that has proved elusive to actually match (I have never pretended to be a programmer).

I guess automating Palo Alto Networks EDL creation is going to take a while /sigh

#pcre #regexp

Last updated 2 years ago

R. L. Dane · @RL_Dane
936 followers · 12005 posts · Server fosstodon.org

@thfr

Good to know I don't have to fetch GNU ls ^___^

But honestly, not missing it. :D

Is colorls developed by one of the devs, or is it imported from ?

The only thing I sometimes miss is the . Even vim seems to be missing it, for some reason.
Oh, and emoji. Emojis work great in Chromium, but almost nowhere else.

#openbsd #freebsd #pcre

Last updated 2 years ago

[object Object] · @objectObject
136 followers · 71 posts · Server hachyderm.io

I just completed "Tuning Trouble" - Day 6 - Advent of Code 2022 in ( ) adventofcode.com/2022/day/6

github.com/lucaswiman/advent-o

Uses negative lookahead assertions and backreferences to force uniqueness. Then feed it to `grep - Pbo` (P=Perl regexes, b=byte offset, o=only match) to get the position.

#adventofcode #regex #pcre #grep

Last updated 2 years ago

R. L. Dane · @RL_Dane
877 followers · 10628 posts · Server fosstodon.org

@mjgardner @benjaminhollon @marcxjo

I wonder where came from, if not from Perl, then?

#pcre

Last updated 2 years ago

R. L. Dane · @RL_Dane
872 followers · 10557 posts · Server fosstodon.org

@benjaminhollon @TheTuzu

I use bc, but python is good, too.

I'm tempted to use perl as grep on for access to yummy ^__^

#openbsd #pcre

Last updated 2 years ago

R. L. Dane · @RL_Dane
860 followers · 10385 posts · Server fosstodon.org

@benjaminhollon @marcxjo

Regex is really quite decent, but definitely an acquired taste.

I particularly like in , because (Perl-Compatible Regular Expressions) are super powerful, mostly instead of needing to use large character classes like [[:alnum:]], [[:space:]] and [0-9], you can just write \w, \s, and \d, respectively. There's also the massively powerful \b, which represents a word border.

...

#regex #perl #pcre

Last updated 2 years ago

Alex Nedelcu :java: · @alexandru
124 followers · 67 posts · Server fosstodon.org

I used professionally, or for real/finished personal projects:

-
-
- (ugh)
-
-
-
-
-
-
-
-
-
-

DSLs that matter:

- ,
-
-
- 😛

Others I learned or played with, and that I can probably pick up quickly:

-
-
-
-

I should probably mention my non-native 🙂

Primarily, we're language learners 💪

#programming #languages #bash #csharp #coffeescript #haskell #java #javascript #kotlin #perl #php #python #ruby #scala #typescript #html #css #pcre #regexp #sql #math #clojure #cpp #fsharp #ocaml #english

Last updated 2 years ago

tXambe · @tXambe
1 followers · 323 posts · Server mastodon.social

RT @three_cube@twitter.com

Hacker Fundamentals: Introduction to Regular Expressions (regex)

bit.ly/2p3Tco4

🐦🔗: twitter.com/three_cube/status/

#regex #pcre #cybersecurity #CyberWarrior

Last updated 2 years ago

Efraim Flashner · @efraim
145 followers · 1330 posts · Server tooot.im

Having some trouble with cmake-bootstrap on on on core-updates-frozen. 3.16.5 worked fine but 3.20.1 and 3.21.3 both hang forever while building. I might need to try adding back a 3.16 version for powerpc and using that to build cmake-minimal.
After all of that I still need to look at and pcre2 and the failed jit tests on powerpc.

#powerpc #guix #pcre

Last updated 3 years ago