Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
.*Target Name: (\w+\-\w+)\n.*Target Type\: (\w+)\n(?:.*Offset X\: (?'PreliminaryX'-?\d+\.\d+) mm\n.*Offset Y\: (?'PreliminaryY'-?\d+\.\d+) mm\n.*Offset A\: (?'PreliminaryA'-?\d+\.\d+) degree\n.*In-Range.*\n.*In-Range.*\n.*In-Range.*\n.*Compensate.*\n)?(?:.*Offset X\: (?'FinalX'-?\d+\.\d+) mm\n.*Offset Y\: (?'FinalY'-?\d+\.\d+) mm\n.*Offset A\: (?'FinalA'-?\d+\.\d+) degree\n)
/
gm

Description

no description available

Submitted by anonymous - 6 years ago