Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^\s*(?: (?<protocol>https?) \:[\/\\]{2} (?<app>[\w\-]+) \. (?<client>[\w]+) \-? (?<environment>[\w]*) \. (?<audience>[\w\.]+) \:? (?<port>\d*) [\\\/] (?<instance>.*?) )\s*$
/
gmxi

Description

Tears down a publishing URL that conforms to the Midland/PNC Application Delivery Publishing URL specification.

Submitted by anonymous - 5 years ago