Skip to content

Instantly share code, notes, and snippets.

View ThiagodePaulaSouza's full-sized avatar
🧪
autotelic

Thiago de Paula Souza ThiagodePaulaSouza

🧪
autotelic
View GitHub Profile
@ThiagodePaulaSouza
ThiagodePaulaSouza / GuidRegex.js
Created March 11, 2023 21:41
regex que identifica GUIDs
const rxGuid = new RegExp('[({]?[a-fA-F0-9]{8}[-]?([a-fA-F0-9]{4}[-]?){3}[a-fA-F0-9]{12}[})]?','g')
rxGuid.test('f2373f76-79e6-4c80-b148-18c498b62b62') //true
rxGuid.test('ihafsh-sfa-012a3129832-9has-jkhdasjk') //false