Regular Expressions 101

Community Patterns

AppDelivery URL Teardown v1

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