in reply to Re: Regex matching on anywhere but the beginning or end of a line
in thread Regex matching on anywhere but the beginning or end of a line
versusmy $t = q["string (12" or 1 foot or 1') into 6" MySQL varchar"]; $t =~ s/(?<=.)"(?=.)/""/g;
And the number of iterations is shown in the benchmark output (2**20 = 1048576)my $t = q["string (12" or 1 foot or 1') into 6" MySQL varchar"]; substr($t, 1, -1) =~ s/"/""/g;
|
|---|