Fix regex creation, fix typo