What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-12 13:05:08
preg_replace examples
$result = preg_replace('/abc/', 'def', $string); # Replace all 'abc' with 'def' $result = preg_replace('/abc/i', 'def', $string); # Replace with case insensitive matching $result = preg_replace('/\s+/', '', $string); # Strip all whitespaces Add solution -
Other 2022-01-30 15:31:43
how to Remove redundant empty line. [API]csharp(RCS1036) vs code
Open your code in Visual Studio Code From Edit Menu, select Replace or use a short cut key (command + Option + F on Mac or Ctrl + H on Windows) In the find box type ^(\s)*$\n Leave the replace box empty Make sure the 'Use Regular Expression' is selected S... Add solution -
SQL 2021-11-21 07:18:19
sql string functions
ASCII Returns the equivalent ASCII value for a specific character. CHAR_LENGTH Returns the character length of a string. CHARACTER_ LENGTH Same as CHAR_LENGTH. CONCAT Adds expressions together, with a minimum of 2. CONCAT_WS Adds expressions together, but... Add solution -
PHP 2021-10-27 05:42:10
generate seo friendly url from string in php
<?php /** * Generate a URL friendly "slug" from a given string. * * @param string $title * @param string $separator * @return string */ function slug($title, $separator = '-') { // convert String to Utf-8 Ascii $title = iconv(mb_d... Add solution