Regular Expression Examples

Rules can be written using Regular Expression triggers which allows users to define all sorts of trigger entries previously not possible.

As an example. a rule administrator can now write a rule against an availability entry. The rule logic would be;

If Host Session Exists, display an alert saying “We have route deals on VS for this availability”, trigger only when an Availability Entry containing LHRJFK is entered

This rule will now be able to display an alert to the user about your route deals if the user ever performs an availability from London to New York - this would prompt them to at all times try and sell VS on this particular route. The regular expression needed for this would be /A.{4,5}LHRJFK/;

Some further examples are provided in the above table.

Previous Lesson: Rule Actions Explained Table of Contents Next Lesson: Installation