edit and delete now fully functional. regex improvements, links added and removed correctly