Regular Expressions 101

Community Patterns

0

Open ach

PCRE2 (PHP >=7.3)
8k realese
Submitted by Cache - 3 years ago
0

Frac

Python
frac
Submitted by anonymous - 3 years ago
0

SKRAI

PCRE2 (PHP >=7.3)
haowei.ch
Submitted by haowei.ch - 3 years ago
-2

smargs

PCRE2 (PHP >=7.3)
smargs not margins
Submitted by rkatz - 3 years ago
0

Valid Dates

PCRE2 (PHP >=7.3)
e
Submitted by anonymous - 3 years ago

Rinex 2 filepath parsing pattern

0

Regular Expression
Python

r"
^(?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?$
"
gim

Description

Loading markdown...
Submitted by Mathieu Peyréga (mathieu.peyrega@gmail.com) - 3 years ago
(Last modified 3 years ago)