Regexpreplace '.*' 'OK' matches twice

For testing the new websource script options setting feature i wanted to define a filter for the format of an album:

{
      "type": "string",
      "key": "FilterFormat",
      "title": "Media Format",
      "description": "Filter used for Media Format.",
      "choices": [
	    "Any",
		"Cassette",
        "CD",
		"DVD",
		"File",
        "Vinyl"
      ],
      "default": "Any"
    },

If I use in ParserScriptIndex

		json_select_array "format" -1 ", "
		ifvar "FilterFormat" "Any"
			regexpreplace ".*" "OK"
		endif

then in debug.out I get a double OK

Script-Line    : 24
Command        : ifvar
Parameter 1    : >FilterFormat<
Parameter 2    : >Any<

Output         : ><

Line and position:
CD, Album, Reissue, Repress
^

------------------------------------------------------------

Script-Line    : 25
Command        : regexpreplace
Parameter 1    : >.*<
Parameter 2    : >OK<

Output         : ><

Line and position:
OKOK
^

------------------------------------------------------------

Same thing happens with the regular expression '.*$', whereas '^.*' and '.+' give a single OK,
Is this a bug or a feature of regular expressions?

See here:

So it seems to be a strange feature.
Thank you for the answer.

This seems to be the same Problem: