It is my first attempt to use pyparsing and I’d like to ask
how to filter this sample line:
survey = '''GPS,PN1,LA52.125133215643,LN21.031048525561,EL116.898812'''
to get output like: 1,52.125133215643,21.031048525561,116.898812
In general I have problem with understanding pyparsing logic so any help with this
example will be appreciated. Thanks
You could start with something like this:
The output of the script is:
Edit: You might also want to consider lepl, which is a similar library that’s pretty nicely documented. The equivalent script to the one above is: