@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.
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/ #PCRE is it?
Maybe this is something #sed can do? Im not super fmlr w/ all gnutils
#regex #question #x003c #x003e #pcre #sed
@jernej__s @malwareminigun /\p{Quotation_Mark}solved\p{Quotation_Mark}/ #Perl #regex
(Note that doesn’t work with software using the #PCRE Perl “Compatible” #RegularExpression library because its #Unicode support is worse: https://www.pcre.org/current/doc/html/pcre2unicode.html#:~:text=Only%20the%20short%20names%20for%20properties%20are%20supported)
#perl #regex #pcre #regularexpression #unicode
@barubary @Edent Or #PCRE, the Perl Compatible* Regular Expression engine, Which is used by #PHP and #Rlang as well as the #Apache and #nginx HTTP servers, #nmap, #Postfix, and #Exim (for which it was originally written).
You can even make your #Perl compatible with PCRE instead of other Perl, but you should have a good reason (performance mostly): https://metacpan.org/pod/re::engine::PCRE2
* PCRE2’s own documentation highlights nineteen separate significant differences: https://www.pcre.org/current/doc/html/pcre2compat.html
#pcre #php #rlang #apache #nginx #nmap #postfix #exim #perl
@Codely @drupler It helps to build your complicated #RegularExpressions 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 #PHP and #JavaScript also support named capture groups if you’re doing replacements. They’re a lot more readable.
Also, PHP’s #PCRE-based engine has a PCRE_EXTENDED flag that lets you add whitespace, newlines, and comments.
#regularexpressions #php #javascript #pcre #regexes #regexps
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
Good to know I don't have to fetch GNU ls ^___^
But honestly, not missing it. :D
Is colorls developed by one of the #OpenBSD devs, or is it imported from #FreeBSD?
The only thing I sometimes miss is the #PCRE. Even vim seems to be missing it, for some reason.
Oh, and emoji. Emojis work great in Chromium, but almost nowhere else.
I just completed "Tuning Trouble" - Day 6 - Advent of Code 2022 #AdventOfCode in #regex (#pcre #grep) https://adventofcode.com/2022/day/6
https://github.com/lucaswiman/advent-of-code/blob/main/2022/0006/solve.regex
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
@mjgardner @benjaminhollon @marcxjo
I wonder where #PCRE came from, if not from Perl, then?
Regex is really quite decent, but definitely an acquired taste.
I particularly like #regex in #perl, because #PCRE (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.
...
#Programming #languages I used professionally, or for real/finished personal projects:
- #Bash
- #CSharp
- #CoffeeScript (ugh)
- #Haskell
- #Java
- #JavaScript
- #Kotlin
- #Perl
- #PHP
- #Python
- #Ruby
- #Scala
- #TypeScript
DSLs that matter:
- #HTML, #CSS
- #PCRE #regexp
- #SQL
- #Math 😛
Others I learned or played with, and that I can probably pick up quickly:
- #Clojure
- #CPP
- #FSharp
- #OCaml
I should probably mention my non-native #English 🙂
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
RT @three_cube@twitter.com
Hacker Fundamentals: Introduction to Regular Expressions (regex) #regex #pcre #cybersecurity #cyberwarrior
🐦🔗: https://twitter.com/three_cube/status/1477843733047660549
#regex #pcre #cybersecurity #CyberWarrior
Having some trouble with cmake-bootstrap on #powerpc on #guix 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 #pcre and pcre2 and the failed jit tests on powerpc.