Regular Expressions 101

Community Patterns

Find Input tag in html

0

Regular Expression
PCRE (PHP <7.3)

/
<input[^>]*\s*(?=[^>]*type\s*=\s*('|"|)Submit\s*(\1))[^>]*\s*(?:value\s*=('|"|)Next\s*(\3))[^>]*>
/
gi

Description

Find the <input > tag in html to remove from html

Submitted by anonymous - 3 years ago