in reply to Using a Regexp to match a string exactly

Hi!

There is no weirdness in using ^and $ in the same regex. However in your case, a simple compare (using eq) would also work. With the side-effect of making your code better readable and possibly faster.

HTH, Rata