[ticket/11701] Refix regex for appending |length

PHPBB3-11701