Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^([[:alpha:]_]\w*[[:alnum:]])?(\/([[:alpha:]_]\w*[[:alnum:]]))*$
/

Description

Regex for validating if a string is a valid resource path to load resources from the resources folder in Unity.

Submitted by Walter Geisler - 9 years ago