note
LanX
Didn't you rather want to use <C>+</C> instead of <C>*</C> ?
<c>
DB<48> p "hello\nfoo" =~ s/o*$/O/gmr;
hellOO
fOO
DB<49> p "hello\nfoo" =~ s/o+$/O/gmr;
hellO
fO
DB<50>
</c><P>
<div class="pmsig"><div class="pmsig-708738">
<!--nowiki--><p>Cheers Rolf<br>
<sub>(addicted to the Perl Programming Language :)
<br> <i> [id://1153804|Wikisyntax for the Monastery]</i>
</sub>
<!--nowiki-->
</div></div><!-- Wiki2Monks {"version":1.16} -->
11128774
11128774