Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:(?:[A-ZÃÁÀÄÂÉÈËÊÍÌÏÎÕÓÒÖÔÚÙÜÛÝÇ' ]?)+, (?:[A-ZÃÁÀÄÂÉÈËÊÍÌÏÎÕÓÒÖÔÚÙÜÛÝÇa-zãáàäâéèëêíìïîõóòöôúùüûýç'. ]+)+(?:; )?)+
/
g

Description

Matches entries of authors in the "SURNAME, Name" system format (NBR 6023) for some Unicode characters. Google Forms regular expression matching does not have Unicode support. This Regex is intended to overcome this limitation.

Ex.: O'DRISCOLL, Patrick; MERÉNYI, Erzsébet; GROSSMAN, Robert WU, Liqun; BRINKHOFF, Thomas; HAHN, Axel

Submitted by Rolf Simoes - 7 years ago