PCRE2Project / pcre2

PCRE2 development is now based here.
Other
919 stars 191 forks source link

Add Perl titlecasing #475

Closed NWilson closed 2 months ago

NWilson commented 2 months ago

This is a feature in Perl, which combines the functionality of the replacement casing operators:

$thevar = "Hello";
$thevar =~ s/(Hello)/>\l\U${1}</g;
print $thevar

PCRE2 should support this, for Perl compatibility.

PhilipHazel commented 2 months ago

Good point. I will merge this once all the checks are complete, and I will then update the documentation.