Move regopt to the beginning of (regexp)/(dregexp).