Regular Expressions 101

Community Patterns

Phone search in HTML

0

Regular Expression
PCRE (PHP <7.3)

/
([Тт]ел[\p{L}|\.|\w|\s]*)<[^t][^r]*?>[\+|\s]?([\d|\s|\(|\)]{10,})
/

Description

Searching for phone in HTML where content in 1-st tag descibes phone type in some next tag

Submitted by Akella - 8 years ago