Код: Выделить всё
// Match plural words (cats, dogs, boxes) - including words ending in x/ch/sh which add 'es'
$pattern = "/^[a-zA-Z]+(s|es|xes)?$/";
Суффикс — это конец строки, например, строки имени. Итак, в Стэнли ' и s имеют суффикс
Подробнее здесь: https://stackoverflow.com/questions/798 ... ame-roller
Мобильная версия