uses regexp object