determine_if_regex: add pseudo REG_FORCE flag

for rewrites it is necessary to have regular expression with
sub-expression matching (even when there are no sub-expressions) because
the matched part needs to be replaced, and we need the position of it.