.foreach() for regular expression matches has come to #opensource Varnish HTTP Cache.
Our #pcre2 #regex module https://gitlab.com/uplex/varnish/libvmod-re for #varnishcache now also supports iterating over matches on strings and HTTP bodies
#opensource #pcre2 #regex #varnishcache
@ovid #git has Perl “Compatible” #Regularxpressions.
This page tells you where they differ with actual #Perl regular expressions: http://www.pcre.org/current/doc/html/pcre2compat.html
Most notably, #PCRE2 only has a subset of #Unicode support: http://www.pcre.org/current/doc/html/pcre2unicode.html
#git #regularxpressions #perl #pcre2 #unicode
regsub() on bodies has finally arrived for #opensource Varnish HTTP Cache.
Our #pcre2 #regex module https://gitlab.com/uplex/varnish/libvmod-re for #varnishcache 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 think you to Philip Hazel and Zoltan Herczeg for their great work on the essential regular expression library.
#opensource #pcre2 #regex #varnishcache
A bugfix gives me an excuse to mention that, for some time now, https://gitlab.com/uplex/varnish/libvmod-re - our #pcre2 #regex module for #varnishcache - 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
@RL_Dane @benjaminhollon @marcxjo #PCRE was “inspired by” #Perl #RegularExpressions. It was developed as a replacement for the original Spencer #regexp library used by the #Exim mail transfer agent. Although there has been some cross-pollination of features, they’re independent projects with different goals.
#PCRE2 documents some of its differences with Perl here: https://www.pcre.org/current/doc/html/pcre2compat.html
#PCRE #perl #regularexpressions #regexp #exim #pcre2