8 Sep 04:25
Flex empty string
From: Eric Fowler <eric.fowler <at> gmail.com>
Subject: Flex empty string
Newsgroups: gmane.comp.lex.flex.general
Date: 2007-09-08 02:26:33 GMT
Subject: Flex empty string
Newsgroups: gmane.comp.lex.flex.general
Date: 2007-09-08 02:26:33 GMT
I hear a rumor this is the place for online flex discussion.
I am a relative newbie and I want to match NMEA 0183 strings coming from a GPS.
They look like this:
$GPGGA,123519,4807.038,N,01131.000,E,1,08,
0.9,545.4,M,46.9,M,,*47
except when they look like this:
$GPGGA,123519,4807.038,N,01131.000,E,,,,,,,,,*47
In other words, many fields can be blank, but they are always comma - delimited. When they exist they are nicely structured,
e.g. {DIGIT}{4}"."{DIGIT}{3} matches a latitude string.
So how do I distinguish between a field with some specific data and a delimiter, and an empty string followed by the same delimiter?
Thanks.
Eric
_______________________________________________ help-flex mailing list help-flex <at> gnu.org http://lists.gnu.org/mailman/listinfo/help-flex
RSS Feed