Regular Expressions 101

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

/
(([\W\w]*)(apps)(-?)([\w]{0,2})(.[\W\w]*))
/

Description
Created·2015-11-06 18:03
Type·Match
Flavor·JavaScript

Tokenize a HostName for optional string values. Good for testing whether you are in np, qa, qp, or production environments.

Submitted by Matthew Ledbetter
Open Workspace