← GalleryRinex 2 filepath parsing pattern✨ Emoji Combos"^(?P<file_path>[\.]{0,2}[\/\\]{0,2}(?:(?:(?:[^\x00-\x1F\""\*\/\:\<\>\?\\\|\x7F]*[\/\\])*?)?(?=(?P<year_4digits>[0-9]{4})[\/\\]))?(?:(?:(?:[^\x00-\x1F\""\*\/\:\<\>\?\\\|\x7F]*[\\\/])*?)?(?=(?P<day_of_year_path>[0-3][0-9]{2})[\/\\]))?(?:(?:(?:[^\x00-\x1F\""\*\/\:\<\>\?\|\x7F]*[\\\/])*?)?(?=data_(?P<rinex_rate>[0-9]{1,2})[\/\\]))?(?:[^\x00-\x1F\""\*\/\:\<\>\?\\\|\x7F]*[\/\\])*)(?P<filename>(?:(?P<station_name>[a-z0-9]{4})(?P<day_of_year_file>[0-3][0-9]{2})(?P<session_code>[a-x,0])(?P<high_rate_code>00|15|30|45)?)\.(?P<year_2digits>[0-9]{2})(?P<rinex_filetype>[bcdeghlnoms])(?:\.(?P<compression_type>Z|gz|zip|7z|bz2|rar){1})?)\r?$"gimPython+05 years ago✓ Pre-loaded
About this regex
Parses full filepaths to RINEX 2 GNSS data files, capturing an optional directory structure (4-digit year, day-of-year, and 'data_NN' rate subdirectories) plus the standardized 9-character filename. Named groups extract the 4-character station name, day of year, session code, optional high-rate interval (00/15/30/45), 2-digit year, file type letter, and optional compression extension (Z, gz, zip, etc.). Commonly used in GPS/GNSS data pipelines to validate and extract metadata from observation, navigation, or meteorological files.