Primo: make data extraction slightly more general

Now tested locally. Also added some comments etc.
The regexp requires a `p` in the beginning <b>and</b> in the end? That seems wrong for me and it seems not to work in your test case.