Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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 - 2 years ago