Please provide sample documents that matches and does not match the cases you want.

Also share everything else that you tried so we can avoid working in a direction you know does not work. It might also make us better understand the use case.