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

前端 未结 5 1895
無奈伤痛
無奈伤痛 2021-02-11 00:10

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 00:47

    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!

提交回复
热议问题