Is there any programmatic way to take a Regexp like /foo/ and turn it into an anchored Regexp (/^foo/)? I'm looking for a programmatic way to do this because the actual Regexp is dynamic, not known until run time. I'm wishing for an option or method similar to the EXTENDED, IGNORECASE, MULTILINE options, except for anchoring. I suspect the answer will be "no", but I wanted to ask anyway before giving up hope... Cheers, Greg