Adding isRegex.
Initial implementation