Craft CMS は replace フィルターで正規表現が使える
{{ tag.title|lower|replace('/[^\\w]+/', '-') }}
Filters | Craft 3 Documentation
https://docs.craftcms.com/v3/dev/filters.html#replace
regex_replace とかかと思ったけど違ったのでメモしておく。
More than 3 years have passed since last update.
Craft CMS は replace フィルターで正規表現が使える
{{ tag.title|lower|replace('/[^\\w]+/', '-') }}
Filters | Craft 3 Documentation
https://docs.craftcms.com/v3/dev/filters.html#replace
regex_replace とかかと思ったけど違ったのでメモしておく。
Register as a new user and use Qiita more conveniently