WOW! I think I got the idea. My dumb version of FM does want the optional flag argument aswell. Calculating RegP_Replace ( "o"; target; "xxx"; 0) has the expected result! S.