c# regex parse file in ical format and populate object with results

前端 未结 5 1954
清酒与你
清酒与你 2021-02-11 00:12

I\'m trying to parse a file that has the following format:

BEGIN:VEVENT
CREATED:20120504T163940Z
DTEND;TZID=America/Chicago:20120504T130000
DTSTAMP:20120504T1640         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-11 01:13

    I'd personally use string.Split(':') for this for each line in the file. This has the benefit of being easy to read and understand too if you don't want to re-learn regular expressions again!

提交回复
热议问题