<?php $string = "word,!pineapple--pizza"; echo preg_replace_callback( '~[a-z]+~i', fn($m) => strrev($m[0]), $string );
You have javascript disabled. You will not be able to edit any code.