What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-09 09:33:01
php remove numbers from string
$words = preg_replace('/[0-9]+/', '', $words); Add solution -
PHP 2021-09-08 16:22:02
'https://', 'www.' & all sub derictories reomve from a url with regex
<?php $url = "https:// http://www.app.azonedev.com/somet hing/nothi ng"; $url_to_main_domain = preg_replace('/(https|http|:|\/\/|www.|\s)/i','',$url); $remove_sub_dir_from_url = preg_replace('/(\/).*/','',$url_to_main_domain)... Add solution -
PHP 2021-09-08 11:55:01
php string replace regex
<?php $string = 'The quick brown fox jumps over the lazy dog.'; $patterns = array(); $patterns[0] = '/quick/'; $patterns[1] = '/brown/'; $patterns[2] = '/fox/'; ... Add solution
Best helpers
Ranking is empty