in reply to Re: replace at the begining
in thread replace at the begining
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
|
|---|