Banner output Search pattern to register output that begins with a specific string
search cancel

Banner output Search pattern to register output that begins with a specific string

book

Article ID: 373231

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

The Banner Output Search Pattern field is a Java regular expression field so the correct Java expression is required when entering values.

For example, the following are files that exist in the output directory:

123_file_nosa  
file_123456.log  
file_nosa.bad  
file_nosa_input.txt  
file_nosa.log

What is acceptable Java expression value that will register only output whose filename begin with the string 'file'?

In the list above, this is last 4 files but not the first file.

Resolution

The correct Java expression value to register only output whose filename that begins with the string "file" is:

\b(?=\w)file.*

External sites do exist that will allow the testing of Java expression values if the above does not meet your requirements.