Regular Expressions 101

Library entries

Elite:Dangerous system jump parsing

Vote

1

Regular Expression
pcre

/
{(?<Time>\d{2}:\d{2}:\d{2})\} System:"(?<SystemName>[^"]+)" StarPos:\((?<StarPos_X>[^,]+),(?<StarPos_Y>[^,]+),(?<StarPos_Z>[^)]+)\)ly( Body:(?<Body>\d+) RelPos:\((?<RelPos>[^)]+)\)km)?(\s+(?<TravelMode>\w+))?
/
g

Description

Loading markdown...
Submitted by anonymous - 5 years ago