Help for this page

Select Code to Download


  1. or download this
    $string =~ s!(</?)([^/>])!$1.uc($2)!eg;
    
  2. or download this
    s!
      (</?)      # Match and capture '<' followed by optional '/'
    ...
      $1         # Replace with '<' or '</'.
      . uc($2)   # Concatenate with the uc of $2.
    !egx