'C# convert Chinese date format to English date format

I use OCR technology and recognizing date from national id card of Taiwan. My issue is that this date format is different than normal as below example

52年2月22日

here logic is that first 2 letters represent year but needed to plus 1911 second number digits represents month and last 2 digits represents day so as final needs to return

1963-02-22

one important reason this is ocr so sometimes we can recognize as example below

民國52年2月22日
1 52年2月22日
! 52年2月22日

so for above situations I again needs to recognize correctly. So here regex is needed. How can I solve this issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source