Regular Expressions 101

Community Library Entry

1

Regular Expression
Python

r"
\/(\w+)Box\ \[\ ?([-]?\d+|[-]?\d+\.\d+) +([-]?\d+|[-]?\d+\.\d+) +([-]?\d+|[-]?\d+\.\d+)\ +([-]?\d+|[-]?\d+\.\d+)\ *?\]
"
gm

Description

It should match the Media, Crop, ... boxes

Submitted by Efrem Sbirul - 9 years ago