Add documentation to prepare_command with valuable input from @tonyarnold.
add newline
small amendment
Merge pull request #5192 from swizzlr/documentation

Add documentation for obscure regex.