in reply to Re^3: ref() and Regexp (blessed)
in thread ref() and Regexp

In 5.10, DDS isn't needed: re::is_regexp and re::regexp_pattern are available in core. (The latter requires use'ing re; the former doesn't.)