I am trying to extract merchant statement which is under txt format to UIpath data table using Regex activity. I could extracted some columns highlighted in red color in below image and I stored data in UIpath data table created called “merchant_Reportdb”
However, I also need to get the “Merchant Number” to same data table as a new column.
which is highlighted in yellow color. Further, the extracted merchant number should be copied under new column call “Merchant ID” and it has to be repeat according to the row counts
Ex :
Card Number Merchant ID
455xxxxx4545 2200178
4568xxxx4558 2200178
458xxxxxx1178 2200178
You can try to use the below regex. I modified it a bit as there are spaces between MERCHANT NUMBER and the colon after that as well, that’s why it is not working: