title: get all parents values and index from text c#
body: <p>I have below string as input and need parent child values and the index.</p>
  <blockquote>
  <p>\n \n\nClassified as Internal \n\nSchedule \n\nThis is the second line for this document. \n\n1. First Point. (Index = 1) \n\n \n\na. First Sub point level 1. (Index = 1.1)  \n\n \n\nb. Second Sub point level1. (Index = 1.2) \n\n \n\n1. First Sub point Level 2 (Index = 1.2.1) \n\n \n\nA. First Sub point Level 3 (Index = 1.2.1.1) \n\ni. First Sub point Level 4 (Index = 1.2.1.1.1) \n\nii. Second Sub point Level 4 (Index = 1.2.1.1.2) \n\niii. Third Sub point Level 4 (Index = 1.2.1.1.3) \n\niv. Fourth Sub point Level 4 (Index = 1.2.1.1.4) \n\n1.  First Sub point Level 5 (Index = 1.2.1.1.4.1) \n\n2.  Second Sub point Level 5 (Index = 1.2.1.1.4.2) \n\n3.  Third Sub point Level 5 (Index = 1.2.1.1.4.3) \n\nB. Second Sub point Level 3 (Index = 1.2.1.2) \n\nC. Third Sub point Level 3 (Index = 1.2.1.3) \n\nD. Fourth Sub point Level 3 (Index = 1.2.1.4) \n\n \n\n2. Second Sub point Level 2 (Index = 1.2.2) \n\nA. First Sub point Level 3 (Index = 1.2.2.1) \n\n \n\n\n</p>
  </blockquote>
  <p>And the format of the document is per below:
  <a href="https://i.stack.imgur.com/DCLCR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DCLCR.png" alt="enter image description here" /></a></p>
  <p>Now, i need to have result in below format:</p>
  <blockquote>
  <p>==============================================================</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/5SOiG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5SOiG.png" alt="enter image description here" /></a>
  Please note the &quot;<strong>(Index = 1.2.*)</strong>&quot; is just for representation and actual wont have it.</p>