From 216e0554606a89cbb4fb965d206f05ea33d95cb1 Mon Sep 17 00:00:00 2001 From: Brian of London Date: Thu, 4 Nov 2021 11:39:32 +0200 Subject: [PATCH] added regex for checking a podcast:guid Signed-off-by: Brian of London --- docs/1.0.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/1.0.md b/docs/1.0.md index 7fac1f8..5dab8a0 100644 --- a/docs/1.0.md +++ b/docs/1.0.md @@ -541,6 +541,10 @@ Using this pattern, podcasts can maintain a consistent identity across the open * All podcasts in the Podcast Index have already been assigned a GUID; but if one exists in the RSS feed, that value is canonical. * You can programmatically spot a GUID: it is 36 characters long, and contains four hyphen characters. * Be aware that Amazon Music also uses UUIDv5 identifiers, which are calculated differently. +* The following regular expression (regex) will match a GUID: +```re +[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}` +``` ### Parent   ``