Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\b(?P<plaintiff>(?:[A-Z0-9][\p{L}\d'&.-]*)(?:\s+(?:[A-Z0-9][\p{L}\d'&.-]*|(?:of|the|and|for|in|on|at|de|la|du|der|von|van|di|da|y)|&))*?)\s+v(?:s\.)?\.?\s+(?P<defendant>(?:[A-Z0-9][\p{L}\d'&.-]*)(?:\s+(?:[A-Z0-9][\p{L}\d'&.-]*|(?:of|the|and|for|in|on|at|de|la|du|der|von|van|di|da|y)|&))*)
/
gm

Description

For example, Brown v. Board of Education

United States v. Microsoft Corp.

Smith vs. Jones

3M Co. v. Johnson & Johnson

People v. O.J. Simpson

Submitted by CaptainQuack - a month ago