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