Need help to change string to correct data table

Hi Everyone ,
i have a “string” input with fixed "column named ",
i really need to change this string into a data table , maybe using regex or i really prefer using
“Generate Data Table from String” activity

S.Number Contract …Item Customer/Vendor Name Qty deduct Ctr* Material Material Description
P1 81123456789 Wumbo Wumbo LTD New 5,250 6.7212121 Wumbo is new Wumbo No
P2 81123456789 Wumbo Wumbo LTD OLDS 750 6.721212A Wumbo is new Wumbo Yes
P3 81123456789 Wumbo Wumbo LTD Yes 1,600 6.7222222 Wumbo is new Wumbo Maybe

Header is :

  • S
  • Number
  • Item
  • Customer/Vendor Name
  • Qty deduct Ctr
  • Material
  • Material Description

Thanks

we do feel that the heades and the data have some different schema e.g.

SNO Contract Vendor Qty Matrial Descr Unknown Col
P1 81123456789 Wumbo Wumbo LTD New 5,250 6.7212121 Wumbo is new Wumbo No

In general we have the approach of

  • set markers with different Regex, String method techniques
  • also can be done in a chain

Once all data is marked, then parse it e.g. generate DataTable or other approaches

Example Marker setting as 1 step in a chain:

next step:

so unclear / remaining is the Yes, no, maybe part

Afterwards we just trim the column values if wished

Hi PPR,

thanks for replying , i want to clear up some of the RAW data

S.Number Contract …Item Customer/Vendor Name Qty deduct Ctr* Material Material Description
P1 81123456789 Wumbo Wumbo LTD New 5,250 6.7212121 Wumbo is new Wumbo No
P2 81123456789 Wumbo Wumbo LTD OLDS 750 6.721212A Wumbo is new Wumbo Yes
P3 81123456789 Wumbo Wumbo LTD Yes 1,600 6.7222222 Wumbo is new Wumbo Maybe

expected output

Would you be kind enough to help me on the steps by steps to generate this?

thankn you

explore the above mentioned approach for more samples as

as we could drive the same strategy of marking, parsing, cleansing

Thanks for the suggestion ppr,

but at the moment i lack the skills to made a good Regex,
im looking for complete solution

but your suggestion has already help me a lot
Thank you , really appreciate it

when new to regex cascading and marking can be more easy to get it done instead of writing a All-In-One regex

Have a look on this approach exploiting groups and substitution:

^([A-Z])(\d)( [\d]+)(\d)(.*?)([\d,]+)([\d. ]+)(.*)

In addition to our PM chat: