I am working on a complex project, where it required regular expression(Regex) syntax to be used on a particular text to trim and capture string only which is dynamic in nature. Please find my text down below and help me to find the perfect regex syntax to get the value.
Total nett amount: EUR 13.02
Total incl. VAT: EUR 13.02
Ship from: FR
Ship to: PL
UL. LUBELSKIEJ 4
HERR HERR JACUB NOWACKI
Incoterms:
Lane ID:
Billing Party: 8888
Customer ID: 0000
Item: 1 12.06 EUR
480 TRANSPORTATION
VAT 0% 0 X
0000000000000000
00000000000000
Service: U
Ship date: 0000000
Weight (gross / nett): 1.50 / 1.50 KG
Amount: 1 EA
EXPRESS WORLDWIDE eu
FUEL SURCHARGE
Item: 1 0.96 EUR
203 FUEL SURCHARGE
Weight (gross / nett): 1.50 / 1.50 KG
Amount: 1 EA
EXPRESS WORLDWIDE eu
FUEL SURCHARGE
Here I need to capture which string is present after (Ship from: , Ship to:, Item1:) only.
I have tried many ways, but am struggling. So I desperately need help to complete it.
@Panda_Baruna_K , In the Data provided above, you have only mentioned FR, there were no additional data for Ship from field.
Could you let us know why are we only interested in FR ? Is it because it is the First Word ? Or is it because it matches the list of keywords that needs to be matched ?
Sorry for the inconvenience, Actually that is a two digit country code, which i need to extract and use for further operation in my project. And please learn it, that the two digit is dynamic may change, so I need to trim between the (Ship from: & the details mentioned there.
I hope am clear. I really need support to fix the issue.