Flex empty string
"Eric Fowler" <[email protected]> Fri, 7 Sep 2007 19:26:33 -0700
| Newsgroups | gmane.comp.lex.flex.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1379746741==
Content-Type: multipart/alternative;
boundary="----=_Part_1954_9698774.1189218393360"
------=_Part_1954_9698774.1189218393360
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
------=_Part_1954_9698774.1189218393360
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I hear a rumor this is the place for online flex discussion. <br><br>I am a relative newbie and I want to match NMEA 0183 strings coming from a GPS. <br><br>They look like this: <br>$GPGGA,123519,4807.038,N,01131.000,E,1,08,
0.9,545.4,M,46.9,M,,*47<br><br>except when they look like this:<br><br>$GPGGA,123519,4807.038,N,01131.000,E,,,,,,,,,*47<br><br>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. <br><br>So how do I distinguish between a field with some specific data and a delimiter, and an empty string followed by the same delimiter?<br><br>Thanks.
<br><br>Eric<br>
------=_Part_1954_9698774.1189218393360--
--===============1379746741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
help-flex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-flex
--===============1379746741==--