The construction that-matches-pattern defines string attributes as regular expression patterns, both in ontology and questions. It is a new feature in FluentEditor 2014. This functionality allows to specify not only one particular string as attribute, but also a whole set (or class) of strings defined by regular expression. This keyword may appear insted of equal-to or (some value) keyword. It can be used in questions.


The example below shows how to use regular expressions in CNL.

Example: Rule for female names in Polish language - it must end with 'a' sound.
Every-single-thing that has-name that-matches-pattern '.*a' is a female-person.