This is the regex I used
Regex.Replace(pdf_Details_NoDate, “(?<=\d.\d{2}***)(\n\s*\n)”, “”)
Text format:
***Elov Chinese Drugstore ***
4,075.82
Four Thousand Seventy Five pesos and Eighty Two Cents only
***ATHENA JILLIAN TOBIA ABIGANIA ***
955.50
Nine Hundred Fifty Five pesos and Fifty Cents only
***Holiday Inn Galleria Manila ***
3,331.17
Three Thousand Three Hundred Thirty One pesos and Seventeen Cents only
***HOLY COW CHOPHOUSE INC.-N ***
5,501.22
Five Thousand Five Hundred One pesos and Twenty Two Cents only
***South Star Drug Inc ***
2,730.81
Two Thousand Seven Hundred Thirty pesos and Eighty One Cents only
***Amphil Lasa Foods Inc ***
8,990.25
Eight Thousand Nine Hundred Ninety pesos and Twenty Five Cents only
Expected output:
***Elov Chinese Drugstore ***
4,075.82
Four Thousand Seventy Five pesos and Eighty Two Cents only
***ATHENA JILLIAN TOBIA ABIGANIA ***
955.50
Nine Hundred Fifty Five pesos and Fifty Cents only
***Holiday Inn Galleria Manila ***
3,331.17
Three Thousand Three Hundred Thirty One pesos and Seventeen Cents only
***HOLY COW CHOPHOUSE INC.-N ***
5,501.22
Five Thousand Five Hundred One pesos and Twenty Two Cents only
***South Star Drug Inc ***
2,730.81
Two Thousand Seven Hundred Thirty pesos and Eighty One Cents only
***Amphil Lasa Foods Inc ***
8,990.25
Eight Thousand Nine Hundred Ninety pesos and Twenty Five Cents only
I wnat this so I able to convert it datatable much easier 3 columns datatable





