fork download
  1. import re
  2.  
  3. s="311102Z/5663.00N/00813.02E/GPS//03/-/"
  4. pattern = r"[^/]+(?=/)|(?<=/)(?=/)"
  5. print(re.findall(pattern, s))
Success #stdin #stdout 0.02s 9496KB
stdin
Standard input is empty
stdout
['311102Z', '5663.00N', '00813.02E', 'GPS', '', '03', '-']