&lt;h3&gt;Title&lt;/h3&gt;
Start pos: 0
End pos: 14
Length: 14

&lt;b&gt;Bold statement&lt;/b&gt;
Start pos: 14
End pos: 35
Length: 21

&lt;b&gt;Other text&lt;/b&gt;
Start pos: 58
End pos: 75
Length: 17

&lt;p&gt;My paragraph&lt;/p&gt;
Start pos: 75
End pos: 94
Length: 19