Browse Source

Add UUID regex to 'Regular expression' operation

I use this one often so I'm sure others will like it too :)
Clément Notin 1 year ago
parent
commit
0bf7852e83
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/core/operations/RegularExpression.mjs

+ 4 - 0
src/core/operations/RegularExpression.mjs

@@ -83,6 +83,10 @@ class RegularExpression extends Operation {
                         name: "Strings",
                         value: "[A-Za-z\\d/\\-:.,_$%\\x27\"()<>= !\\[\\]{}@]{4,}"
                     },
+                    {
+                        name: "UUID (any version)",
+                        value: "[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}"
+                    },
                 ],
                 "target": 1
             },