Regular Expressions 101

Community Patterns

Advent of Code Day 12

0

Regular Expression
PCRE (PHP <7.3)

/
^<x=([-|+]?\d*)\s?,\s?y=([-|+]?\d*)\s?,\s?z=([-|+]?\d*)>$
/

Description

Parses 3d coordinates for getting Position and Velocity

http://adventofcode.com/day/12

Submitted by Andrew Hoffmann - 4 years ago