Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-07-31 07:50
Flavor·PCRE2 (PHP)

/
^(?:(([\d\p{L}\-_$&+:;=?@#|!\.]+ )*[\d\p{L}\-_$&+:;=?@#|!\.]+)++,)*+(([\d\p{L}\-_$&+:;=?@#|!\.]+ )*[\d\p{L}\-_$&+:;=?@#|!\.]+)++$
/
gm
Open regex in editor

Description

Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)

Submitted by anonymous