fork(1) download
  1. import re
  2. text = "-ac-ac"
  3. print( re.sub(r'\B-|-\B', '.', text) )
Success #stdin #stdout 0.03s 9376KB
stdin
Standard input is empty
stdout
.ac-ac