what exactly does this regex? $text =~ s/(=head1 .*)\n\n=head2 \*{3}/$1/g;sub process_chapter { my ($path, $sections_href) = @_; my $text = read_file( $path ); $text =~ s/^L<(\w+)>/insert_section( $sections_href, $1, $path )/e +mg; $text =~ s/(=head1 .*)\n\n=head2 \*{3}/$1/g; return $text; }
In reply to regex help! by anek77713
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |