Help for this page

Select Code to Download


  1. or download this
      $n =~ s/(^| )$a( |$)/$1$b$2/i;
    
  2. or download this
      $n =~ s/(^|(?<= ))$a((?= )|$))/$b/i;
    
  3. or download this
      $n =~ s/(?<![^ ])$a(?![%a])/$b/i;
    
  4. or download this
      "FOO foo" =~ s/(^| )foo( |$)/${1}bar$2/ig