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, RataIn reply to Re: Using a Regexp to match a string exactly
by Ratazong
in thread Using a Regexp to match a string exactly
by brainbuz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |