I am new to MT940 file and I am searching for a sample code to read content of .mt940 and store in a database table with respective fields. I am struggling to analyze it. Is there any simple way to parse and save it in a table?
For example take the below line(this is not entire mt940 just a single line)
:61:2009230923D4086,74NDDTNONREF //NONREF
How can I retrieve customer reference(=NONREF ) from the above line? It does not present in same index for all lines. Some times it starts from 28index and some times 30 index.
Use Regex