in reply to Re^2: Is it safe to use external strings for regexes?in thread Is it safe to use external strings for regexes?
Or maybe Regexp::Common if you have to infer the data type from its form.