Moodle Plugins directory: Advanced Search and Replace: Versions: 2025013000 | Moodle.org
Advanced Search and Replace
Advanced Search and Replace 2025013000
moodle-tool_advancedreplace
This is a Moodle plugin that allows administrators to search and replace strings in the Moodle database.
Administrators can search and replace strings in tables and columns of the Moodle database. They can use simple text search or regular expressions.
GDPR
The plugin does not store any personal data.
Branches
Moodle version | Branch | PHP |
---|---|---|
Moodle 4.1+ | MOODLE_401_STABLE |
7.4+ |
Installation
Install the plugin the same as any standard Moodle plugin, you can use git to clone it into your source:
```sh git clone git@github.com:catalyst/moodle-tool_advancedreplace.git admin/tool/advancedreplace
Examples
Find all occurrences of "http://example.com/" followed by any number of digits on tables:
cd admin/tool/advancedreplace/cli/
php find.php --regex-match="http://example.com/\d+" --output=result.csv
Find all occurrences of "http://example.com/" in a table:
php find.php --regex-match="http://example.com/\d+" --tables=page --output=result.csv
Find all occurrences of "http://example.com/" in multiple tables:
php find.php --regex-match="http://example.com/\d+" --tables=page,forum --output=result.csv
Find all occurrences of "http://example.com/" in different tables and columns:
php find.php --regex-match="http://example.com/\d+" --tables=page:content,forum:message --output=result.csv
Find all occurrences of "http://example.com/" in all tables except the ones specified:
php find.php --regex-match="http://example.com/\d+" --skip-tables=page,forum --output=result.csv
Find all occurrences of "http://example.com/" in all columns except the ones specified:
php find.php --regex-match="http://example.com/\d+" --tables=page --skip-columns=intro,display --output=result.csv
Support
If you have issues please log them in GitHub.
Please note our time is limited, so if you need urgent support or want to sponsor a new feature then please contact Catalyst IT Australia.
This plugin was developed by Catalyst IT Australia.
Version information
- Version build number
- 2025013000
- Version release name
- 2025013000
- Maturity
- Stable version
- MD5 Sum
- 13fe3e2e96f9055e848d556bc8dbf6f2
- Supported software
- Moodle 4.1, Moodle 4.2, Moodle 4.3, Moodle 4.4, Moodle 4.5
- Latest release for Moodle 4.1
- Latest release for Moodle 4.2
- Latest release for Moodle 4.3
- Latest release for Moodle 4.4
- Latest release for Moodle 4.5
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS branch
- MOODLE_401_STABLE
Default installation instructions for plugins of the type Administration tools
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder (eg "mytool") in the "admin/tool" subdirectory.
- Visit http://yoursite.com/admin to finish the installation