The ptx --sentence-regexp=regexp option is not implemented and does not use default values defined by gnu/ptx documentation.
The possible default values for this option includes the new line char, so FileContent should change to not use lines function of BufReader, once \n is not present in line str.
Ref