fork(2) download
  1.  
  2. import re
  3. text = "Hello. world. Hello!"
  4. print( re.sub(r'^([^.]*\.[^.]*)\.', r'\1_', text) )
  5.  
Success #stdin #stdout 0.02s 9720KB
stdin
Standard input is empty
stdout
Hello. world_ Hello!