in reply to strip out of single quotes

This strips all single quotes:

$str =~ s/'//g;

According to what you posted ("there's nothing to strip out when '+additional time' doesn't exist"), this should do the trick.

Replies are listed 'Best First'.
Re^2: strip out of single quotes
by jwkrahn (Abbot) on Sep 16, 2025 at 16:19 UTC

    Or:

    $str =~ tr/'//d;
    Naked blocks are fun! -- Randal L. Schwartz, Perl hacker

      Indeed. And tr/'//d is faster than s/'//g.