Regular Expressions 101

Community Patterns

1

Get <NIC>

Python
Get NICs from string
Submitted by anonymous - 5 months ago
1

emoji-test.txt

Python
emoji-test.txt
Submitted by anonymous - a month ago
-1

text beetween text

Python
no description available
Submitted by karol - 9 years ago
0

test

Python
no description available
Submitted by anonymous - 9 years ago
0

test

Python
test
Submitted by boag - 8 years ago

Sample Data - Single Job Number

0

Regular Expression
Python

r"
^\s*(?P<code1>(?P<code1_prefix>FA|GE|S|MUD|CM|RE|F|R)?(?P<code1_base>\d*)(?P<code1_suffix>[ -]*(?:\(?PR\d*\)?|\(?ITAR\d*\)?|\(?EC\d*\)?|\(?FX\d*\)?|\(?\s*(?P<forecast1_when>(?:january|february|march|april|may|june|july|augest|october|november|december)\s*)?forecast\)?)+[ -]*)*[ -]?)\s*((?P<type_charge>\s*charge.*to\s* (?P<code2>(?P<code2_prefix>FA|GE|S|MUD|CM|RE|F|R)?(?P<code2_base>\d*)(?P<code2_suffix>[ -]*(?:\(?PR\d*\)?|\(?ITAR\d*\)?|\(?EC\d*\)?|\(?FX\d*\)?|\(?\s*(?P<forecast2_when>(?:january|february|march|april|may|june|july|augest|october|november|december)\s*)?forecast\)?)+[ -]*)*[ -]?)\s*)|(?P<type_run>\((?P<run_number>\d)[a-z]+\s*run\)\s*)|(?P<type_letter>\((?P<letter_which>[a-z])\)\s*))*
"
gmi

Description

Loading markdown...
Submitted by anonymous - 3 years ago