handbook/behat-steps/given-replaced-with-in-the-file.md
github-actions[bot] c22aa665e6 Regenerate handbook
2025-12-17 18:56:32 +00:00

5.7 KiB

Given /^"([^"]+)" replaced with "([^"]+)" in the ([^\s]+) file$/

Search and replace a string in a file using regex.


Usage

Scenario: My example scenario
  Given "Foo" replaced with "Bar" in the readme.html file
  ...

Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.