The above output should look like#!/usr/bin/perl while(<DATA>){ s/(?<!<)p\sclass=/<p class=/; print $_; } __DATA__ <p class="Hi">Hello <p class="new">How r u
<p class="Hi"\>Hello <p class="new"\>How r u
In reply to Re^2: replace at the begining
by Anonymous Monk
in thread replace at the begining
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |