in reply to Regexp for oneliner conversion

Illustrating BrowserUK's warning that your success will depend on just how just "how like" the next code to be converted is to the example your open-ended question:

A regex simply can't translate a *nix-ish perl -E '`stat \usr\bin\foo;`' to something a stock M$ Windows system will understand and act on properly unless it's custom-built to deal with that particular approach... and the custom regex will fail on many (most) variants.