Regular Expressions 101

Community Patterns

Extract words between ":" and "-"

0

Regular Expression
PCRE (PHP <7.3)

/
:\s*(\w.*?)\s*-
/
g

Description

extract string between strings

Submitted by anonymous - 4 years ago