Regular Expressions 101

Python program to match if two words from a list of words starting with letter 'P'.

Open Workspace
  • Python
  • Match
0

Regular Expression

r"
(P\w+)\W(P\w+)
"
gm

Description

Python program to match if two words from a list of words starting with letter 'P'.

Submitted by Anonymous