Execute batch regular expression search and replace with capture group placeholders ($1, $2) and case-sensitivity flags.