Regular Expressions 101

Community Patterns

PDF Boxes Matcher

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 - 8 years ago