Regular Expressions 101

Community Patterns

Get top and left style elements from html style attribute

0

Regular Expression
PCRE (PHP <7.3)

/
(?P<position>top|left)\s*\:\s*(?P<value>[\d]+(?:\.[\d]+)?)(?P<measure>px|%|em|pt);?
/
g

Description

no description available

Submitted by anonymous - 6 years ago