conform documentation about regex classes \w and \p to code