How would be get the ff using regex ? get string that starts with AT and ends with the number for example AT-210209-141 , AT-210209-421, AT-210209-423 . Also get the string starts with CMTRX like CMTRX00015591 , also starting with PMTRX like PMTRX0003232 and string starting with AONCUR like AONCUR-AP-34334. How do we dynamically do that ? any idea ? thanks. #DATA
El AT-210209-141 ! General
o AT-210209-421 General
El AT-210209-421 General
o AT-210209-423 General
El AT-210209-423 General
AL CT-210209-423 General
El CMTRX0012323 General
o CMTRX00053233 General
El CMTRX00015591 General
El CMTRX00015591 General
El PMTRX0001223 General
El PMTRX0003232 General
El AONCUR-AP-34334 General
El AONCUR-AP-4343 General
El AONCUR-AP-23342 General
El AMPay00012345 General
AL L4-210209-423 General
AL TR-210209-423 General
What if I only wanted to get strings that begin with the ff. if and get the value like CMTRX00015591 , PMPay00012345 and so on. If the string does not begin with the example below the regex should ignore it. @prasath17@ppr .
a. CMTRX
b. PMTRX
c. BT
d. LT
e. PMPay
f. CONCUR-AP-###
G. AT
I want to keep all data that starts with but only up to the last number it should not include text like General or anything for example CMTRX00015591 ! General . The output should be CMTRX00015591. @prasath17
El BT-210209-141 !General
o BT-210209-421 General
El BT-210209-421 General
o BT-210209-423 General
El BT-210209-423 General
AL CT-210209-423 General
El CMTRX0012323 General
o CMTRX00053233 General
El CMTRX00015591 General
El CMTRX00015591 General
El PMTRX0001223 General
El PMTRX0003232 General
El CONCUR-AP-34334 General
El CONCUR-AP-4343 General
El CONCUR-AP-23342 General
El PMPay00012345 General
AL L4-210209-423 General
AL TR-210209-423 General
@prasath17 One last question sir how do we add a filter or checking that will determine if its a previous date ? in this format YYMMDD
for example if item equal toBT-210210-141 , it should check the date after BT which is 210210(YYMMDD) then the bot will log a message that it is a previous day based on our current date today . Today is 11 and last day is 10 which is 210210 in YYMMDD format. Thanks