cancel
Showing results for 
Search instead for 
Did you mean: 

Job alert source : Regex to match string ending with numbers

nanda_kumar21
Active Contributor
0 Kudos

Hi all,

SAP CPS M33.104 build.

I am creating Job alert source for a set of job definitions that start with XX and end with a number generally.

Sample:

XX_D_TEST_01

XX_W_PASS_32

XX_W_PAF_67

XX_M_CHECK_JOB_192

XX_D_MISS_FILE_SAS_5

I tried matching with the Name Match Type set to Regex Insensitive and using the following Expression:

(XX).*?(\d*)

XX.*?\d*

XX_(D|W|M)_(.*(TEST|PA|CHECK|MIS|[0-9]\b))

but did not work out.

Can some one help?

thanks

Nanda

Accepted Solutions (0)

Answers (1)

Answers (1)

gmblom
Active Contributor
0 Kudos

Hi Nanda,

Normally XX.*\d* should be enough. But since you put a * after the \d, the digit at the end does not seem to be a requirement, so XX.* would also be fine. If the digit at the end IS a requirement, force at least 1 digit with XX.*\d+

Regards Gerben