#!/usr/bin/perl -w use strict; my $test = '

this is some<1p> paragraph

'; $test =~ s/<.?p>//g; #s/<.??p>//g; #also ok print "$test\n"; __END__ prints: this is some paragraph