Knockout validation is a plugin that allows you to extend observables with validation. If you're familiar with jQuery validation, you will notice that most provided validation rules are very similar. One of the validation rules available out-of-the-box is pattern validation. By default the error message for violating this rule doesn't mention the expected pattern. Let's change this.