Job ID regular expression

The Regexp for job id regular expression is matched on the output from your submit command. The first bracketed expression in the regular expression is used as the job ID. The elements listed in the table are available in addition to the conventional quantifiers, range and exclusion operators.

Table 7 Regular expression characters

Element

Matches

C

A character represents itself

\t

A tab

.

Any character

\d

Any digit

\D

Any non-digit

\s

White space

\S

Non-white space

\w

Letters or numbers (a word character)

\W

Non-word character

For example, your submit program might return the output job id j1128 has been submitted. One possible regular expression for retrieving the job ID is id\s(.+)\shas.

If you would normally remove the job from the queue by typing job_remove j1128, you must enter job_remove JOB_ID_TAG as the cancel command.