fork download
  1. import re
  2.  
  3. text = '1;2;3;4;5;1;2;3;4;5;1;2;3;4;5;1;2;3;4;5;1;2;3;4;5;1;2;3;4;5;1;2;3;'
  4. print(re.sub(r'((.*?;){4}.*?);', r'\1NACHTOZAMENIMKOMANDIR?', text))
Success #stdin #stdout 0.01s 28384KB
stdin
Standard input is empty
stdout
1;2;3;4;5NACHTOZAMENIMKOMANDIR?1;2;3;4;5NACHTOZAMENIMKOMANDIR?1;2;3;4;5NACHTOZAMENIMKOMANDIR?1;2;3;4;5NACHTOZAMENIMKOMANDIR?1;2;3;4;5NACHTOZAMENIMKOMANDIR?1;2;3;4;5NACHTOZAMENIMKOMANDIR?1;2;3;