pos regex documentation and reorg