How to use (preg_replace) replace the symbol "/"

Created on 21 May 2024, 11 months ago
Updated 4 June 2024, 11 months ago

Hello,

{{ 'Drupal - community plumbing!'|preg_replace('/(Drupal)/', '<b>$1</b>') }}

I use this filter, but i don't kwon how to replace the symbol "/".

{{ '50/01'|preg_replace('/\//','') }} This is wrong.

Thank you

💬 Support request
Status

Fixed

Version

3.3

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024