Regular Expressions 101

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
https?:\/\/chat\.googleapis\.com\/v1\/spaces\/(?P<space_id>[^\/\s$]+)\/messages\?key=(?P<key>[^\s$]+)&token=(?P<token>[^\s&]+)\z
/
gm

Description

Regular match an URL integration to Google chat by WebHook

Submitted by Vito Bryliano - a year ago