Horje
check if string is uuid Code Example
check if string is uuid
// For test 01234567-9ABC-DEF0-1234-56789ABCDEF0 use Regex
Regex reg = new Regex("/^[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}$/");

// with brackets
Regex reg = new Regex("/^\{?[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}\}?$/");
// use https://regexr.com/ for a REGEX builder




Java

Related
how to find out if a directory exists in cpp Code Example how to find out if a directory exists in cpp Code Example
runtime exception in java Code Example runtime exception in java Code Example
fibonacci of 6 Code Example fibonacci of 6 Code Example
java use variables inside strings Code Example java use variables inside strings Code Example
Write a method multiply() in a class Arithmetic Code Example Write a method multiply() in a class Arithmetic Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7