fork(1) download
  1. import re
  2. s = ",WWWWWW,hun,hun,WWWWW,"
  3. print re.sub(r"(?i)((?:,|^)[^\w\r\n\t]*)HUN([^\w\r\n\t]*)(?=(?:,|$))", "\1\2", s)
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
,WWWWWW,,,WWWWW,