Specifications
Parameter List
regexp
The actual parameter value must match the specified regular expression
(without sensitivity to case). Regular expressions are patterns in text strings
that are formed by normal characters and special characters. Regular
expressions allow you to search on patterns instead of fixed strings.
Example:
event "Event5" Windows StatusMessage { Text=regexp:"ID[0-9]+" }
Example
The following example shows a rule set for an application called
EmployeeManagement. The transaction definitions use the contains, regexp,
and implicit exact keywords for parameter values.
resources # The application consists of a single executable.
{
require all
{
resource Process { ExecutableName="EmplMgmt" }
}
additional
{
resource Windows { }
resource Connection { }
}
}
#
# User-level transactions. Only monitor new employee and employee
# update operations.
#
transaction "NewEmployee"
module "NewEmployee"
{
event "Event1" Windows MenuCommand { Text="New->Record…" }
event "Event2" Windows StatusMessage { Text="New employee record created." }
}
transaction "EmployeeUpdate"
module "EmployeeUpdate"
{
event "Event3" Windows MenuCommand { Text="Edit->Save" }
# Match any status message that contains "record updated."
event "Event4" Windows StatusMessage { Text=contains:"record updated." }
164 BTStudio Administration Guide










