Hi,
I have the following 4 kind of text in logs - single file. I want to extract the string - Customer Num (starting with number followed by alphabets) . I wish to write 1 single reggae query which can handle all type of logs.
I have been able to handle & extract the Customer Number from first 3 types patterns(one regex for each row, which is not optimal), but the fourth is turning to be a problem, because it is sort of a superset of the two lines of log..
Log Text -
"*/GW_SS/SPut/s/**123abc**/*”
"*/GW_SS/SPut/icam/**165abc**/*”
“*/GW_SS/GtImFile/**2245dbvf**/ngH*”
"*/GW_SS/**123xy**/GetPendingP*"
"*/GW_SS/009876/connectInfo*"
I have to extract "123abc" / "165abc", "2245dbvf" , "123xy" & "009876" which is a Customer ID from each row of logs..This string I need to extract always begins with a number, and have alphabets following it..
Can someone please help.. I want to manage all these with 1 single regex..
↧