Fixed malformed regex issue. Should fix #8.