Learn R Programming

pliman (version 3.1.0)

get_uuid: Extract UUID from filenames

Description

This function extracts a UUID (Universal Unique Identifier) from the filename, using a regular expression that specifically identifies the standard UUID format.

Usage

get_uuid(filename)

Value

A character vector with extracted UUIDs (or NA if none found)

Arguments

filename

A character vector containing filenames or strings

Examples

Run this code
library(pliman)
file <- "Grãos - contagem_f68bca60-c8cf-4272-9448-3f28891a97cd.jpg"
file2 <- "Grãos - contagem_f68bca60-c8cf-4272-9448-3f8891a97cd.jpg"
get_uuid(file)

Run the code above in your browser using DataLab