Fixed regex escape issue, closes #9.