fork(1) download
  1. import re
  2. text = "This is some string, that includes commas, and other punctuations. It also includes hello world, is a, good, idea for a T-shirt and other."
  3. match = re.search(r"hello\W+world\W+is\W+a\W+good\W+idea\W+for\W+a\W+T-shirt", text)
  4. if match:
  5. print("YES!")
Success #stdin #stdout 0s 23304KB
stdin
Standard input is empty
stdout
YES!