I guess it's a rarely used class, but I was testing it today and I found a bug.
The method ExtractUsingTemplate calls String.Substring with the start and the end index, but Substring expects the start index and the length.
Attached is the patch to fix it
Merged to 4.0.x at 569b49c4ead3f026f0a161c1b9b6833fb92e7216
Closing issues resolved in 4.0.3