anjasing
(Anjali)
1
Need help in finding usage % for a particular object PQR_STU from the given input text and expected output is 94.88
Input Text:
Object Description From Number To Number Usage % Numbers Remaining
ABC_DEF APO CIF Initial Load 0001 009999 96.949390 305
PQR_STU Documents 1 4999999 94.888018 255599
MNOP Document 1 999999999 85.317826 146821743
Output Text:
94.88
Hi @anjasing
Could you try “(?<=PQR_STU)(\s\S+){4}” and extract Group 1
anjasing
(Anjali)
3
I already have a code deployed and don’t want to change code. only want to change the config from config file and this isn’t working. Thank you
@anjasing
Try to update in config:
PQR_STU\s+\d+\s+\d+\s+(\d+.\d{2})
What is the code used??
Matches? Match? Groups?
anjasing
(Anjali)
6
find matching patterns - first match
1 Like
Hi @anjasing
To be more precise and as seen in the input text format you could use the expression
(?<=PQR_STU.*?\s)\d{2}\.\d{2}
If this works, please do mark as a solution
Thank you
1 Like