I have a workflow where I am retrieving document text and running a pattern match so that if certain criteria is met the text is placed into a metadata field. 90% of the time this is successful and I didn't know if anyone had any recommendations for what to do the other 10% of the time. Here is an example of the text that I am extracting
Commodity Real Return Fund USD 11,037.528 5.92 65,342.17 1.000000 65,342.17
Inst Acc
Credit Absolute Return Fund USD 13,262.599 11.07 146,816.97 1.000000 146,816.97
Inst Acc
Diversified Income Fund USD 8,424.600 19.36 163,100.26 1.000000 163,100.26
Inst Acc
Emerging Markets Bond Fund USD 2,583.979 38.31 98,992.24 1.000000 98,992.24
The pattern that I am using is .*USD.................
The field that I get which is what I want is
Commodity Real Return Fund USD 11,037.528
Credit Absolute Return Fund USD 13,262.599
Diversified Income Fund USD 8,424.600
Emerging Markets Bond Fund USD 2,583.979
Where I run into a problem is that sometimes the fund name is really long so the value I am extracting is as follows:
Emerging Markets Short-Term Local Ccy
Fd USD 11,872.891 11.76 139,625.20 1.000000 139,625.20
Inst Acc
as you can tell the result is
Fd USD 11,872.891
Is there anyway I can run a conditional parallel that says If text is Emerging Markets Short-Term Local Ccy then combine it with the next multi value token to create desired field value?
Thanks in advance!