Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "string is $str\n";
    $str=~s/(?<=(\d\s){1})\d*/I am replaced/;
    print "string is $str";
    
  2. or download this
    $str=~s/(?<=(\d\s){0})\d*/I am replaced/;