Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
<\/head>([\s\S]*)href="https:\/\/TBD\/[\s\S]*>Buy Now
"

Description

For python regex, substiution not working properly. It is not replcing matched content of $1... and so on. Please take a look.

Submitted by anonymous - 10 years ago