Community Patterns

Community Library Entry

2

Regular Expression
Created·2021-07-02 15:57
Flavor·ECMAScript (JavaScript)

/
^(?<first>[a-fA-F\d]{8})-?(?<second>[a-fA-F\d]{4})-?(?<third>[a-fA-F\d]{4})-?(?<fourth>[a-fA-F\d]{4})-?(?<fifth>[a-fA-F\d]{12})$
/
gm
Open regex in editor

Description

Matches a guid string that can optionally include dashes.

Submitted by anonymous