Help for this page

Select Code to Download


  1. or download this
    $ perl -E'say "xxx" =~ s/(*MARK:a)^.|(*MARK:c).$|(*MARK:b)./$REGMARK/g
    +r'
    abc
    
  2. or download this
    $ python -c 'import pcre2; print(pcre2.sub("(*MARK:a)^.|(*MARK:c).$|(*
    +MARK:b).", "$*MARK", "xxx"))'
    abc