Proposal for "File_SearchReplace2"

» Metadata » Status
» Description
Existing File_SearchReplace package lacks one special ability - do the search before replace. I.e. doSearch method starts changing files immediately. This package is proposed to introduce BC break making doSearch r/o and introducing doReplace method, which will do the task instead. doSearch will be used to filter (grep) list of files according to the rules.

In future - this class will include functionality of File_Find to grep and do S'n'R operations not only to an array of specified files or directories, but with combinations of various file masks.

P.S. Alternative name for this package is File_SearchAndReplace. I do not know which is better.

Mention PEAR QA thread
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2005-08-03
  • Proposal: 2005-11-20
  • Call for Votes: 2005-12-05
  • Voting Extended: 2005-12-13