in reply to Substitution remove all before

$contents =~ s/^.+?(?=<form)//smg;
Naked blocks are fun! -- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re^2: Substitution remove all before
by Anonymous Monk on May 18, 2023 at 21:21 UTC
    Works great. Thanks.