Regular Expressions 101

Library entries

ogn-receiver-beacon

Vote

1

Regular Expression
pcre

/
(?<callsign>\w+?)>APRS,.+?, (?<receiver>\w+):\/ (?<time>\d{6})h (?<latitude>\d{4}\.\d{2}[NS]). (?<longitude>\d{5}\.\d{2}[EW]). (?:(?<heading>\d{3})\/(?<ground_speed>\d{3}))?.*? \/A=(?<altitude>\d{6})\s (?:!W((?<latitude_enhancement>\d)(?<longitude_enhancement>\d))!)? (?:v(?<version>\d+\.\d+\.\d+)(?:\.(?<platform>.+?))?\s)? CPU:(?<cpu_load>[\d.]+)\s RAM:(?<ram_free>[\d.]+)\/(?<ram_total>[\d.]+)MB\s NTP:(?<ntp_offset>[\d.]+)ms\/(?<ntp_correction>[+-][\d.]+)ppm\s? (?:(?<cpu_temperature>[+-][\d.]+)C\s*)? (?:RF: (?: (?<manual_correction>[+-][\d]+) (?<automatic_correction>[+-][\d.]+)ppm\/ )? (?<signal>[+-][\d.]+)dB )?
/
gx

Description

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