Skip to content
String replacement add on for Statamic
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
pi.string.php
test.txt

README.md

A replace function for Statamic

Usage:

 {{ string:replace string='(333) 333-4444' pattern='/[^0-9]/' replacement='' }}

Result:

 3333334444

Copy pi.string.php into the _add-ons/string/ directory.

You can’t perform that action at this time.