#2202325: Added validation for the pattern, updated documentation