Esempio n. 1
0
        private static async Task TestParser()
        {
            var parser = new RegexParser<BankEvent>(
                @"Pokupka, (?<agent>.*), karta \*(?<cardId>\d+), (?<date>\d+\.\d+\.\d+ \d+:\d+), (?<delta>\d+.\d+) rub. Dostupno = (?<available>\d+\.\d+)\s* rub");

            var pokupka = "Pokupka, MARKET PLACE, karta *000883, 10.02.16 15:09, 223.00 rub. Dostupno = 12882.48 rub";
            var bankEvents = await parser.InvokeAsync(pokupka, CancellationToken.None);
        }