{"id":20961710,"url":"https://github.com/heimrichhannot/contao-replace-bundle","last_synced_at":"2025-06-12T20:05:10.070Z","repository":{"id":56983898,"uuid":"128934330","full_name":"heimrichhannot/contao-replace-bundle","owner":"heimrichhannot","description":"Helper contao bundle to perform a regular expression search and replace on front end page.","archived":false,"fork":false,"pushed_at":"2024-03-28T12:25:21.000Z","size":61,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-14T06:57:40.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heimrichhannot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-10T13:08:45.000Z","updated_at":"2022-08-12T05:38:15.000Z","dependencies_parsed_at":"2022-08-21T11:20:54.199Z","dependency_job_id":null,"html_url":"https://github.com/heimrichhannot/contao-replace-bundle","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/heimrichhannot/contao-replace-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-replace-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-replace-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-replace-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-replace-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimrichhannot","download_url":"https://codeload.github.com/heimrichhannot/contao-replace-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-replace-bundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259521512,"owners_count":22870448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T02:15:51.268Z","updated_at":"2025-06-12T20:05:10.043Z","avatar_url":"https://github.com/heimrichhannot.png","language":"PHP","readme":"# Contao Replace Bundle\n\n![](https://img.shields.io/packagist/v/heimrichhannot/contao-replace-bundle.svg)\n![](https://img.shields.io/packagist/dt/heimrichhannot/contao-replace-bundle.svg)\n[![](https://img.shields.io/travis/heimrichhannot/contao-replace-bundle/master.svg)](https://travis-ci.org/heimrichhannot/contao-replace-bundle/)\n[![](https://img.shields.io/coveralls/heimrichhannot/contao-replace-bundle/master.svg)](https://coveralls.io/github/heimrichhannot/contao-replace-bundle)\n\nHelper contao bundle to perform a regular expression search and replace on front end page.\n\n## Configuration\n\nCurrently it is only possible to search and replace globally. Open your contao settings and configure custom search and replace patterns.\n\n![Contao settings](src/Resources/doc/replace-settings.png)\n\n## Examples\n\n### Wrap headline text in `\u003cspan\u003e`\n\nBefore: `\u003ch1\u003eTest A\u003c/h1\u003e` \nAfter: `\u003ch1\u003e\u003cspan\u003eTest A\u003cspan\u003e\u003c/h1\u003e`\n\n- Pattern: `(\u003ch\\d[^\u003e]*\u003e)(.*)(\u003c\\/h[^\u003e]*\u003e)`\n- Replacement: `$1\u003cspan\u003e$2\u003c/span\u003e$3`\n\n### Bootstrap 4 responsive tables\n\nBefore: `\u003ctable\u003e\u003cthead\u003e\u003ctr\u003e\u003cth\u003eValue\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd\u003e1\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/table\u003e\u003c/body\u003e\u003c/html\u003e` \nAfter: `\u003cdiv class=\"table-responsive\"\u003e\u003ctable class=\"table table-bordered table-hover\"\u003e\u003cthead\u003e\u003ctr\u003e\u003cth\u003eValue\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd\u003e1\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/table\u003e\u003c/div\u003e`\n\n- Pattern: `(\u003ctable\u003e)(.*)(\u003c\\/table\u003e)`\n- Replacement: `\u003cdiv class=\"table-responsive\"\u003e\u003ctable class=\"table table-bordered table-hover\"\u003e$2\u003c/table\u003e\u003c/div\u003e`\n\n### Replace files path inside links\n\nBefore: `\u003ca href=\"tl_files/subfolder/files/file.pdf\"\u003eTest link\u003c/a\u003e` \nAfter: `\u003ca href=\"files/backup/file.pdf\"\u003eTest link\u003c/a\u003e`\n\n- Pattern: `(tl_files\\/subfolder\\/files\\/)`\n- Replacement: `\u003cdiv class=\"table-responsive\"\u003e\u003ctable class=\"table table-bordered table-hover\"\u003e$2\u003c/table\u003e\u003c/div\u003e`\n- Replace tags: true (checked)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-replace-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimrichhannot%2Fcontao-replace-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-replace-bundle/lists"}