Commit Graph

2 Commits (7a3fa63db5cb12820ceb97ca100c340afacbab5c)

Author SHA1 Message Date
James Cammarata f2c06cadc3 Cleanup from merge of replace module and CHANGELOG update 11 years ago
Evan Kaufman e88ab431f0 Added replace module
Heavily based on existing lineinfile module, but where it literally tests a regexp against
*each individual line* of a file, this replace module is more analogous to common uses of
a `sed` or `perl` match + replacement of all instances of a pattern anywhere in the file.

Was debating adding `all` boolean or `count` numeric options to control how many
replacements to make in the destfile (vs currently replacing all instances)

Noted use of MULTILINE mode in docs, per suggestion from @jarv
11 years ago