Regular Expressions 101

Community Patterns

Substitution not wokring

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