symfony - replace all characters numeric in twig -


how can replace characters numeric space or deleting these characters

  {{  city|replace({ 'all characters numeric ' : ' ' }) }} 

a quick solution list in replace filter digits

{{  'stack 12 on 74 5001 flow'|replace({ '0' : '','1' : '','2' : '','3' : '','4' : '','5' : '','6' : '','7' : '','8' : '','9' : '' }) }} 

or can use regex, take here


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -