neustradamus, to random
@neustradamus@mastodon.social avatar
mjgardner,
@mjgardner@social.sdf.org avatar

@neustradamus #PCRE continues to be a misnomer; it’s a modified subset of #Perl #RegularExpressions with dozens of differences: https://pcre.org/current/doc/html/pcre2compat.html

It's not "(C)ompatible." Accept no substitutes: https://perldoc.perl.org/perlre

#PCRE2 #PerlIncompatibleRegularExpressions #RegularExpression #RegExes #RegExps #regex #regexp

slink, to opensource
@slink@fosstodon.org avatar

.foreach() for regular expression matches has come to Varnish HTTP Cache.

Our module https://gitlab.com/uplex/varnish/libvmod-re for now also supports iterating over matches on strings and HTTP bodies

ovid, to random
@ovid@fosstodon.org avatar

For those who use git and are tired of remembering the difference between POSIX regular expressions and Perl regular expressions:

git config --global grep.patternType perl

mjgardner,
@mjgardner@social.sdf.org avatar

@ovid has Perl “Compatible” .

This page tells you where they differ with actual regular expressions: http://www.pcre.org/current/doc/html/pcre2compat.html

Most notably, only has a subset of support: http://www.pcre.org/current/doc/html/pcre2unicode.html

slink, (edited ) to opensource
@slink@fosstodon.org avatar

regsub() on bodies has finally arrived for Varnish HTTP Cache.

Our module https://gitlab.com/uplex/varnish/libvmod-re for now also supports substitutions on bodies. Similar to the recently announced .match_body() method, this feature supports matches across storage segments while avoiding to make copies using PCRE2's partial match feature.

Another big thank you to Philip Hazel and Zoltan Herczeg for their great work on the essential regular expression library.

slink, to random
@slink@fosstodon.org avatar

A bugfix gives me an excuse to mention that, for some time now, vmod_re https://gitlab.com/uplex/varnish/libvmod-re - our module for - also supports matches against bodies.
The implementation supports matches across storage segments while avoiding to make copies using PCRE2's partial match feature.
A big think you to Philip Hazel and Zoltan Herczeg for their great work on the essential regular expression library. @slimhazard

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • megavids
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • JUstTest
  • All magazines