Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^((?:outcome|disposition): ?court of appeals'? ?judgments?.*?)(?:(?:\.|;|:|,? ?and|,)? ?(?:trial|circuit|chancery) court(?:'s)? ?judgment)
"
gmi

Description

Regex pattern (2/2) for function "def extract_appealscourt_dispo()" for Mississippi.

This function extracts the part of the dispo relative to the court of appeals when dispo is reported relative to multiple courts.

Submitted by anonymous - 4 years ago (Last modified 4 years ago)