What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-08 09:20:02
javascript trim newline
str = str.replace(/^\s+|\s+$/g, ''); Add solution -
Javascript 2021-09-06 22:52:02
js remove end comma
str = str.replace(/,\s*$/, ""); Add solution -
PHP 2021-09-01 09:26:02
write a script using php telnet to a server
<?php // configuration $file = '/var/log/apache2/access.log'; $ip = '127.'; // start of script $title = "\033[H\033[2K$file"; if (strpos($_SERVER['REMOTE_ADDR'],$ip)!==0) die('Access Denied'); $stream = fopen($file, 'r'); if (!$stream) die(&q... Add solution
Best helpers
Ranking is empty