fixing a bug in the posts regex