This project provides parsing field/element used in MT messages for Financial SWIFT Messages
Note: SWIFT = Society for Worldwide Inter-bank Financial Telecommunication
The Usage Guideline Editor allows the formalization of a field/element format as an MT Format. The MT format language is defined by SWIFT. It describes how a field is structure by specifying :
- which type of characters can be used in that field
- what are the restrictions on the length of the field (i.e. how many times each type of character can appear and in which order)
Here is a simplified definition of those two attributes:
- 6!n = 6 numeric, fixed length
- 6n = numeric up to 6 characters
- 1!e = one blank space
- 6*50x = up to 6 lines of up to 50 characters
- parses the message tag fields and sub-fields
- parses bic code (business Institution code) or swift codes in other words
- do not parse mt messages
- one-way parsing only - doesn't generate the MT messages
- notation : 3!a15d value : EUR50000,00
- notation : 5n[/5n] value : 123/11
- notation : 1!a6!n3!a15d value : A123456ABC1234,
Installation from nuget -- https://www.nuget.org/packages/SwiftNotationParser
Install-Package SwiftNotationParser -Version 1.0.1
string notation = "3!a15d";
string value = "EUR50000,00";
SwiftParser parser = new SwiftParser(notation);
var result = parser.parse(value);