Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/1.0/spec/core/constraint-traits.rst
Original file line number Diff line number Diff line change
@@ -427,6 +427,12 @@ languages.
string matches the regular expression, whereas ``@pattern("^\\w+$")``
requires that the entire string matches the regular expression.

.. note::

Pattern values that contain ``\`` need to :ref:`escape it <string-escape-characters>`.
For example, the regular expression ``^\w+$`` would be specified as
``@pattern("^\\w+$")``.

.. tabs::

.. code-tab:: smithy

0 comments on commit e7a9528

Please sign in to comment.