fork(1) download
  1. import re
  2. rx = r"(?:\b|(?<=_))goel(?=\b|_)"
  3. s="aakash_goel"
  4. print(re.findall(rx,s))
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
['goel']