help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flex empty string


From: Eric Fowler
Subject: Flex empty string
Date: Fri, 7 Sep 2007 19:26:33 -0700

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]