Tagged articles
96 articles
Page 1 of 1
Linux Tech Enthusiast
Linux Tech Enthusiast
May 16, 2026 · Fundamentals

Beginner-Friendly Guide to Linux Shell Programming

This article provides a step‑by‑step tutorial on Linux shell programming for beginners, covering variable naming rules, string manipulation, script creation, environment variable handling, arithmetic operations, user input, logical and string operators, as well as common file and directory commands, all illustrated with concrete code examples and screenshots.

ArithmeticBashEnvironment Variables
0 likes · 19 min read
Beginner-Friendly Guide to Linux Shell Programming
Lisa Notes
Lisa Notes
Mar 27, 2026 · Fundamentals

Python Learning Day 60: Mastering pass, while/for Loops, break‑continue and String Operations

This tutorial‑style note walks through Python’s pass statement, the mechanics of while and for loops (including nested loops and common pitfalls), the use of break and continue, and a comprehensive overview of string creation, slicing, case conversion, searching, replacement, and encoding, all illustrated with concrete code examples and expected outputs.

PythonSlicingString Manipulation
0 likes · 23 min read
Python Learning Day 60: Mastering pass, while/for Loops, break‑continue and String Operations
Lisa Notes
Lisa Notes
Mar 24, 2026 · Fundamentals

Python String Manipulation: strip, split, and join with Examples

This tutorial demonstrates how to use Python's strip, lstrip, rstrip, split, and join functions to remove characters, divide strings, and concatenate elements, providing code snippets and the corresponding output for each operation.

JOINPythonString Manipulation
0 likes · 3 min read
Python String Manipulation: strip, split, and join with Examples
php Courses
php Courses
Jan 15, 2026 · Backend Development

Master PHP’s trim(): Clean Up Strings Efficiently

This guide explains why unwanted whitespace harms data quality, introduces PHP's trim() function and its variants, shows practical code examples for cleaning user input, CSV files, and API parameters, and offers performance tips and best‑practice recommendations for robust backend development.

.trimPHPString Manipulation
0 likes · 9 min read
Master PHP’s trim(): Clean Up Strings Efficiently
php Courses
php Courses
Jan 5, 2026 · Backend Development

Master PHP String Truncation: 5 Methods for Clean, Multilingual Output

Learn how to efficiently truncate strings in PHP using five approaches—substr for ASCII, mb_substr for multibyte characters, regex with preg_match, explode with array handling, and a custom function that adds ellipsis—while understanding each method's syntax, advantages, and limitations.

String Manipulationcustom-functionexplode
0 likes · 5 min read
Master PHP String Truncation: 5 Methods for Clean, Multilingual Output
php Courses
php Courses
Sep 30, 2025 · Backend Development

Master PHP’s strrev(): Syntax, Examples, and Real-World Uses

This guide introduces PHP’s strrev() function, covering its syntax, parameters, return value, and multiple practical examples—from basic string reversal to handling numbers, special characters, and multi-line text—while also highlighting common use cases such as palindrome checks and simple data obfuscation.

PHPString Manipulationstrrev
0 likes · 3 min read
Master PHP’s strrev(): Syntax, Examples, and Real-World Uses
php Courses
php Courses
Sep 28, 2025 · Backend Development

Master PHP’s str_replace: Quick Guide to Replace and Remove Strings

Learn how to use PHP’s str_replace function to replace or delete characters in strings, with clear syntax explanations and practical examples covering simple replacements, multiple replacements using arrays, and character removal, plus tips on advanced options.

PHPString Manipulationstr_replace
0 likes · 4 min read
Master PHP’s str_replace: Quick Guide to Replace and Remove Strings
php Courses
php Courses
Sep 12, 2025 · Backend Development

Master PHP’s str_pad(): Padding, Alignment, Truncation & Formatting Explained

This article provides a comprehensive guide to PHP’s str_pad() function, covering its syntax, parameters, return values, and practical examples such as string padding, alignment, truncation, and numeric formatting, enabling developers to manipulate string lengths efficiently.

Code ExamplesPHPString Manipulation
0 likes · 5 min read
Master PHP’s str_pad(): Padding, Alignment, Truncation & Formatting Explained
php Courses
php Courses
Sep 8, 2025 · Backend Development

Master PHP’s substr_count(): Count Substring Occurrences Easily

Learn how to use PHP’s substr_count() function to count the occurrences of a substring within a string, including its syntax, parameter details, and a practical example that demonstrates counting “Hello” in a sample text, plus tips for more complex applications.

Code ExampleString Manipulationsubstr_count
0 likes · 3 min read
Master PHP’s substr_count(): Count Substring Occurrences Easily
php Courses
php Courses
Sep 5, 2025 · Backend Development

Mastering PHP’s mb_substr: Handle Multibyte Strings with Ease

This article explains PHP's mb_substr() function, its signature, parameters, and provides clear examples showing how to correctly extract substrings from multibyte strings such as Chinese or Japanese without causing garbled output.

BackendString Manipulationmb_substr
0 likes · 3 min read
Mastering PHP’s mb_substr: Handle Multibyte Strings with Ease
php Courses
php Courses
Aug 29, 2025 · Backend Development

Master PHP’s str_word_count(): Count Words, Get Arrays, and Customize Output

This guide introduces PHP’s str_word_count() function, detailing its syntax, parameters, and multiple practical examples that show how to count words, retrieve word arrays, obtain word positions, customize ignored characters, and use regular expressions for advanced string processing.

BackendString Manipulationcoding tutorial
0 likes · 4 min read
Master PHP’s str_word_count(): Count Words, Get Arrays, and Customize Output
php Courses
php Courses
Aug 18, 2025 · Backend Development

Master PHP’s trim(): Remove Unwanted Spaces and Invisible Characters

This article explains how PHP's trim() function removes leading and trailing whitespace and other invisible characters from strings, demonstrates its basic usage with code examples, and shows how to customize the characters to strip for flexible string cleaning.

.trimPHPString Manipulation
0 likes · 3 min read
Master PHP’s trim(): Remove Unwanted Spaces and Invisible Characters
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 28, 2025 · Fundamentals

How to Accurately Detect Palindromes in Python: Multiple Approaches Explained

This article walks through a Python community member's question about checking whether a number is a palindrome, presents the original flawed code, and then offers several correct implementations—including a for‑else solution, an all‑function check, and a slicing method—while explaining the underlying logic.

String Manipulationalgorithmfor-else
0 likes · 5 min read
How to Accurately Detect Palindromes in Python: Multiple Approaches Explained
php Courses
php Courses
Jun 20, 2025 · Backend Development

Master Multibyte String Cutting in PHP with mb_substr – Examples & Tips

The article explains PHP's mb_substr() function, detailing its syntax, parameters, and how it correctly handles multibyte characters, with multiple code examples and notes on edge cases, making it essential for developers working on internationalized backend projects.

BackendPHPString Manipulation
0 likes · 3 min read
Master Multibyte String Cutting in PHP with mb_substr – Examples & Tips
php Courses
php Courses
Jun 20, 2025 · Backend Development

Master PHP’s str_replace(): From Basics to Advanced Tricks

This article explains PHP’s native str_replace() function, covering its syntax, basic usage, and advanced techniques such as array replacements, case‑insensitive replacements with str_ireplace(), and retrieving the number of replacements performed, all illustrated with clear code examples.

Code ExamplesPHPString Manipulation
0 likes · 5 min read
Master PHP’s str_replace(): From Basics to Advanced Tricks
php Courses
php Courses
Jun 19, 2025 · Backend Development

Master PHP Regex: How to Use preg_match, preg_replace, and More

This guide explains PHP’s regular expression functions—including preg_match, preg_match_all, preg_replace, and preg_split—detailing their syntax, required parameters, and practical code examples, while also covering advanced regex meta‑characters and symbols to enhance string matching and data processing.

PHPString Manipulationpreg_match
0 likes · 7 min read
Master PHP Regex: How to Use preg_match, preg_replace, and More
php Courses
php Courses
Jun 6, 2025 · Backend Development

Master PHP’s str_split(): Split Strings into Characters Easily

Learn how to use PHP’s str_split() function to divide strings into individual characters or custom-sized chunks, with clear syntax explanations, practical examples—including splitting “Hello World” and generating numeric codes—plus tips for handling default and optional parameters.

BackendCode ExamplesPHP
0 likes · 4 min read
Master PHP’s str_split(): Split Strings into Characters Easily
php Courses
php Courses
May 28, 2025 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains PHP's str_replace function, detailing its syntax, how it searches and replaces substrings, and provides multiple examples—including simple replacement, replacing multiple characters with arrays, and deleting characters—demonstrating practical usage for efficient string manipulation.

BackendString Manipulationphp-tutorial
0 likes · 3 min read
Using PHP str_replace for String Replacement and Deletion
Raymond Ops
Raymond Ops
Apr 25, 2025 · Fundamentals

Understanding Python’s `is` Operator, re.sub quirks, and list pitfalls

This article explains why Python’s `is` operator yields True or False for integers, how integer caching and code‑block scope affect object identity, uncovers a subtle misuse of re.sub’s count parameter, clarifies lstrip’s character‑wise stripping, and demonstrates the pitfalls of creating nested lists with the `[*] * n` syntax.

PythonString Manipulationlist-issues
0 likes · 7 min read
Understanding Python’s `is` Operator, re.sub quirks, and list pitfalls
php Courses
php Courses
Apr 16, 2025 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains PHP's str_replace function, showing its syntax and demonstrating how to replace, replace multiple, and delete characters in strings through clear code examples and output results, and it also mentions additional options such as limiting replacements and case sensitivity.

PHPString ManipulationTutorial
0 likes · 4 min read
Using PHP str_replace for String Replacement and Deletion
php Courses
php Courses
Mar 28, 2025 · Backend Development

Using PHP str_replace() for String Replacement – Syntax, Parameters, and Examples

This article explains PHP's str_replace() function, detailing its syntax, parameters, return value, and provides three practical code examples demonstrating single-character replacement, multiple replacements using arrays, and case‑insensitive replacement with str_ireplace(), helping developers perform flexible string manipulations.

Code ExamplesPHPString Manipulation
0 likes · 3 min read
Using PHP str_replace() for String Replacement – Syntax, Parameters, and Examples
php Courses
php Courses
Mar 17, 2025 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains the PHP str_replace function, its syntax, and demonstrates with clear code examples how to replace single strings, replace multiple patterns using arrays, and delete characters, helping developers handle string manipulation efficiently.

Code TutorialPHPString Manipulation
0 likes · 3 min read
Using PHP str_replace for String Replacement and Deletion
JavaScript
JavaScript
Feb 5, 2025 · Frontend Development

8 Essential JavaScript String Tricks to Boost Your Code Efficiency

This article presents eight practical JavaScript string manipulation techniques—including template literals, slice shortcuts, repeat, padding, includes, case conversion, split/join, and advanced regex replacements—each illustrated with clear code examples to help developers write cleaner, more efficient code.

Code ExamplesJavaScriptString Manipulation
0 likes · 4 min read
8 Essential JavaScript String Tricks to Boost Your Code Efficiency
php Courses
php Courses
Jan 17, 2025 · Backend Development

How to Use PHP trim() Function to Remove Whitespace and Specified Characters

This article explains the PHP trim() function, detailing its syntax, parameters, and usage for removing leading and trailing whitespace or custom characters, and provides multiple code examples illustrating basic trimming, character masking, and common scenarios in string processing.

.trimPHPString Manipulation
0 likes · 4 min read
How to Use PHP trim() Function to Remove Whitespace and Specified Characters
Test Development Learning Exchange
Test Development Learning Exchange
Dec 24, 2024 · Fundamentals

A Comprehensive Guide to Using Regular Expressions in Python

This article introduces Python's built‑in re module, explains how to import it, craft raw‑string patterns, and demonstrates common functions such as findall, match, search, sub, split, as well as compiling patterns, using match objects, flags, meta‑characters, and handling Unicode encoding for robust text processing.

String Manipulationcoding tutorialre module
0 likes · 8 min read
A Comprehensive Guide to Using Regular Expressions in Python
macrozheng
macrozheng
Oct 28, 2024 · Backend Development

Unlock Java Efficiency: Master Guava’s Most Powerful Features

This article introduces the essential Guava utilities for Java developers, covering data validation, immutable collections, collection factories, multiset and multimap handling, advanced string operations, and simple caching, all with clear code examples to make your code more elegant and robust.

GuavaMultimapString Manipulation
0 likes · 18 min read
Unlock Java Efficiency: Master Guava’s Most Powerful Features
php Courses
php Courses
Oct 24, 2024 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains the PHP str_replace function, its syntax, and demonstrates through three examples how to replace single characters, replace multiple words with an array, and delete characters from strings, providing code snippets and expected output for each case.

Code ExamplesPHPString Manipulation
0 likes · 4 min read
Using PHP str_replace for String Replacement and Deletion
php Courses
php Courses
Sep 4, 2024 · Backend Development

Understanding PHP String Handling and Techniques to Reverse a String

This article clarifies the misconception that PHP treats strings as arrays, explains how string offsets work internally, and presents several practical methods—including built‑in functions, loop‑based techniques, and a pure algorithm—to reverse a string in PHP, complete with code examples and step‑by‑step analysis.

Reverse StringString Manipulation
0 likes · 3 min read
Understanding PHP String Handling and Techniques to Reverse a String
Test Development Learning Exchange
Test Development Learning Exchange
Aug 23, 2024 · Fundamentals

Common Python String Operations: Concatenation, Splitting, Searching, Replacement, and More

This article demonstrates ten essential Python string manipulation techniques—including concatenation, splitting, searching, replacement, case conversion, slicing, formatting, whitespace trimming, list conversion, and URL encoding/decoding—each illustrated with clear code examples and expected output for practical API development.

PythonString Manipulationbackend-development
0 likes · 4 min read
Common Python String Operations: Concatenation, Splitting, Searching, Replacement, and More
Python Programming Learning Circle
Python Programming Learning Circle
Aug 7, 2024 · Fundamentals

Python String Indexing and Manipulation Exercises

This article provides a comprehensive set of ten beginner-friendly Python string exercises covering indexing, slicing, step slicing, searching, replacing, concatenation, formatting, membership testing, length calculation, case conversion, and advanced topics like regular expressions, splitting, padding, stripping, digit checking, and practical text‑analysis examples.

PythonSlicingString Manipulation
0 likes · 13 min read
Python String Indexing and Manipulation Exercises
Python Programming Learning Circle
Python Programming Learning Circle
Jul 8, 2024 · Fundamentals

Python Variable Usage, Naming Conventions, and Common Operations

This article teaches Python developers how to write cleaner, more elegant code by mastering variable unpacking, underscore placeholders, type annotations, PEP 8 naming rules, numeric literals, floating‑point precision handling with Decimal, boolean arithmetic tricks, and a wide range of string manipulation techniques, all illustrated with practical code examples.

DecimalPythonString Manipulation
0 likes · 10 min read
Python Variable Usage, Naming Conventions, and Common Operations
php Courses
php Courses
Jul 2, 2024 · Backend Development

Using PHP trim() to Remove Whitespace and Specific Characters from Strings

This article explains PHP's trim() function, its syntax, parameters, default behavior, and demonstrates how to remove whitespace or specific characters from strings using practical code examples; it also covers optional character mask usage and highlights important considerations when trimming strings in PHP development.

.trimBackendPHP
0 likes · 3 min read
Using PHP trim() to Remove Whitespace and Specific Characters from Strings
php Courses
php Courses
Jun 20, 2024 · Backend Development

Using PHP ltrim() to Remove Leading Whitespace and Characters

This article explains PHP's ltrim function, its syntax, optional character mask, and provides code examples showing how to strip leading whitespace or specific characters from strings, along with notes on behavior and related functions.

BackendPHPString Manipulation
0 likes · 4 min read
Using PHP ltrim() to Remove Leading Whitespace and Characters
php Courses
php Courses
Apr 29, 2024 · Backend Development

Using PHP substr Function to Extract Substrings

This article explains how to use PHP's built‑in substr function to retrieve substrings by specifying start positions and lengths, covering basic syntax, parameter details, return values, and common examples such as extracting the last characters, specific ranges, and converting substrings to uppercase.

BackendPHPString Manipulation
0 likes · 4 min read
Using PHP substr Function to Extract Substrings
php Courses
php Courses
Apr 26, 2024 · Backend Development

Using PHP trim() to Remove Whitespace and Specified Characters

This article explains PHP's trim function, its syntax, optional character list parameter, and provides code examples showing how to remove surrounding spaces and custom characters, while also mentioning related ltrim and rtrim functions for one‑sided trimming.

.trimBackendPHP
0 likes · 3 min read
Using PHP trim() to Remove Whitespace and Specified Characters
php Courses
php Courses
Mar 25, 2024 · Backend Development

Using PHP str_split to Split Strings into Character Arrays

This article explains how to use PHP's str_split function to split strings into character arrays, covering basic syntax, optional split length, and examples including simple splitting, fixed-length chunks, and handling multibyte UTF-8 characters.

ArrayPHPString Manipulation
0 likes · 4 min read
Using PHP str_split to Split Strings into Character Arrays
MaGe Linux Operations
MaGe Linux Operations
Mar 7, 2024 · Fundamentals

Master Python String & List Tricks: Reverse, Palindromes, Unique Elements & More

This guide demonstrates essential Python techniques for manipulating strings and lists, covering reversal, palindrome detection, extracting unique characters, element comparison, list flattening, iterable decomposition, retrieving top N items, memory inspection, custom printing, and handling compressed files.

Coding TipsString Manipulationdata-structures
0 likes · 5 min read
Master Python String & List Tricks: Reverse, Palindromes, Unique Elements & More
Python Programming Learning Circle
Python Programming Learning Circle
Mar 6, 2024 · Fundamentals

30 Minimal Python Tasks: Handy Code Snippets for Everyday Programming

This article presents thirty concise Python examples covering list deduplication, anagram checking, memory usage, string manipulation, chunking, dictionary merging, timing, exception handling, and many other common tasks, each explained with clear descriptions and ready‑to‑run code snippets for beginners and developers alike.

PythonString Manipulationdictionary handling
0 likes · 16 min read
30 Minimal Python Tasks: Handy Code Snippets for Everyday Programming
php Courses
php Courses
Feb 8, 2024 · Backend Development

Using PHP trim() Function to Remove Whitespace and Specified Characters

This article explains PHP's trim() function, its syntax and parameters, and provides clear code examples showing how to remove surrounding whitespace or custom characters from strings, while also mentioning related ltrim() and rtrim() functions for one‑sided trimming.

.trimPHPString Manipulation
0 likes · 4 min read
Using PHP trim() Function to Remove Whitespace and Specified Characters
php Courses
php Courses
Dec 26, 2023 · Backend Development

Using strtoupper() in PHP to Convert Strings to Uppercase

This article explains how to use PHP's strtoupper() function to convert strings to uppercase, covering its syntax, parameters, return values, and multiple code examples demonstrating handling of simple text, multi-word sentences, and strings containing numbers or special characters.

BackendPHPString Manipulation
0 likes · 4 min read
Using strtoupper() in PHP to Convert Strings to Uppercase
php Courses
php Courses
Nov 8, 2023 · Backend Development

Using PHP trim() to Remove Whitespace and Other Characters from Strings

This article explains how PHP's built‑in trim() function removes leading and trailing whitespace and other invisible characters from strings, demonstrates its basic usage with code examples, and shows how to customize the characters to strip, such as tabs, for flexible string handling.

.trimString Manipulationprogramming
0 likes · 4 min read
Using PHP trim() to Remove Whitespace and Other Characters from Strings
IT Services Circle
IT Services Circle
Sep 25, 2023 · Frontend Development

Understanding and Using Regular Expressions in JavaScript

This article provides a comprehensive, beginner‑friendly guide to JavaScript regular expressions, covering core concepts, syntax, creation methods, modifiers, character classes, quantifiers, special characters, capture groups, look‑ahead/look‑behind assertions, common string methods, practical use cases such as validation, search‑replace, data extraction, cleaning, and a list of useful online regex tools.

JavaScriptString Manipulationregular expressions
0 likes · 27 min read
Understanding and Using Regular Expressions in JavaScript
php Courses
php Courses
Sep 14, 2023 · Backend Development

How to Use PHP’s ltrim() Function to Remove Leading Characters

This article explains the PHP ltrim() function, detailing its syntax, parameters, and various use cases such as removing leading spaces, specific characters, and multiple characters, while providing code examples and highlighting that only left‑hand characters are affected.

PHPString ManipulationTutorial
0 likes · 5 min read
How to Use PHP’s ltrim() Function to Remove Leading Characters
php Courses
php Courses
Sep 11, 2023 · Backend Development

Using PHP str_repeat() Function: Syntax, Parameters, and Practical Examples

This article explains the PHP str_repeat() function, covering its basic syntax, parameters, return value, and multiple practical examples such as creating separators, padding strings, generating patterns, and producing random strings, while providing complete code snippets and output demonstrations.

Code ExamplesPHPString Manipulation
0 likes · 6 min read
Using PHP str_repeat() Function: Syntax, Parameters, and Practical Examples
php Courses
php Courses
Sep 11, 2023 · Backend Development

PHP str_pad() Function: Syntax, Parameters, Return Value, and Usage Examples

This article explains the PHP str_pad() function, detailing its syntax, parameters, return value, and demonstrating practical examples such as string padding, alignment, truncation, and numeric formatting to help developers efficiently manipulate string lengths.

PHPString ManipulationTutorial
0 likes · 5 min read
PHP str_pad() Function: Syntax, Parameters, Return Value, and Usage Examples
php Courses
php Courses
Sep 8, 2023 · Backend Development

PHP lcfirst() Function: Syntax, Parameters, Return Value, Usage, and Examples

This article explains PHP's lcfirst() function, detailing its syntax, parameters, return value, important considerations, code examples, typical usage scenarios, and provides learning resource links for developers seeking to handle string case conversion efficiently.

PHPString Manipulationbackend-development
0 likes · 4 min read
PHP lcfirst() Function: Syntax, Parameters, Return Value, Usage, and Examples
php Courses
php Courses
Sep 2, 2023 · Backend Development

Using PHP str_split() Function: Syntax, Parameters, and Practical Examples

This article explains PHP's str_split() function, detailing its syntax, parameters, return values, and providing multiple code examples that demonstrate splitting strings into character arrays, handling custom split lengths, empty strings, and invalid lengths, while also noting multibyte character considerations.

Code ExamplesPHPString Manipulation
0 likes · 5 min read
Using PHP str_split() Function: Syntax, Parameters, and Practical Examples
php Courses
php Courses
Aug 24, 2023 · Backend Development

Understanding PHP's strstr() Function: Syntax, Usage, and Examples

This article explains PHP's strstr() function, covering its syntax, parameters, and practical examples such as finding the first occurrence, retrieving text before the needle, performing case‑sensitive and case‑insensitive searches, and handling multibyte characters with mb_strstr.

Code ExamplesPHPString Manipulation
0 likes · 4 min read
Understanding PHP's strstr() Function: Syntax, Usage, and Examples
Python Programming Learning Circle
Python Programming Learning Circle
Jul 28, 2023 · Fundamentals

20 Practical Python Tips and Tricks for Everyday Coding

This article presents a curated list of twenty practical Python tricks—including string reversal, title casing, unique element extraction, list multiplication, dictionary merging, timing code execution, and more—each explained with concise descriptions and ready‑to‑run code examples to help developers write cleaner and more efficient Python code.

Code ExamplesData StructuresString Manipulation
0 likes · 11 min read
20 Practical Python Tips and Tricks for Everyday Coding
php Courses
php Courses
Jul 4, 2023 · Backend Development

Using substr() and mb_substr() to Extract Substrings in PHP

This article explains how PHP's substr() and mb_substr() functions work, detailing their syntax, parameter behavior for positive and negative start and length values, and provides multiple code examples demonstrating string extraction for both English and multibyte Chinese characters.

BackendPHPString Manipulation
0 likes · 6 min read
Using substr() and mb_substr() to Extract Substrings in PHP
Python Programming Learning Circle
Python Programming Learning Circle
Apr 29, 2023 · Fundamentals

Useful Python Tricks and Techniques for String Handling, Iterators, Context Managers, Memory Optimization, and More

This article introduces a collection of lesser‑known Python tricks—including string cleaning with translate, iterator slicing via itertools.islice, skipping iterable headers, keyword‑only arguments, custom context managers, memory saving with __slots__, resource‑based CPU/memory limits, controlling module exports, and simplifying comparisons with total_ordering.

IteratorsString Manipulationresource-limits
0 likes · 10 min read
Useful Python Tricks and Techniques for String Handling, Iterators, Context Managers, Memory Optimization, and More
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 23, 2022 · Fundamentals

Three Reliable Ways to Detect Palindromes in Python

This article tackles a basic Python problem—determining whether a positive integer is a palindrome—by analyzing the original flawed code and presenting three complete solutions: a for‑else approach, an all()‑based method, and a slice‑reversal technique, while also clarifying how the for‑else statement operates.

Code ExamplesString Manipulationfor-else
0 likes · 5 min read
Three Reliable Ways to Detect Palindromes in Python
Python Crawling & Data Mining
Python Crawling & Data Mining
May 15, 2022 · Fundamentals

How to Split CamelCase Strings into Readable Words in Python

This article explains how to transform a CamelCase string like "WeLovePython" into a spaced, properly capitalized sentence in Python, presenting five different code solutions—including loop‑based, regex, and string‑method approaches—and compares their implementations.

Code ExamplesString ManipulationcamelCase
0 likes · 5 min read
How to Split CamelCase Strings into Readable Words in Python
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 15, 2021 · Fundamentals

Three Simple Python Tricks to Convert Chinese Dates to YYYY/MM/DD

This article walks through a fan's question on converting a Chinese date string like '2021年9月28日' into the standard '2021/9/28' format, presenting three practical Python solutions—including direct replacement, split‑and‑join, and datetime parsing—so you can pick the most suitable method for bulk data processing.

Date ConversionPythonString Manipulation
0 likes · 4 min read
Three Simple Python Tricks to Convert Chinese Dates to YYYY/MM/DD
php Courses
php Courses
Aug 5, 2021 · Backend Development

Common PHP Utility Functions for String Handling, Encryption, and Validation

This article presents a collection of practical PHP utility functions—including string truncation with ellipsis, MD5-based encryption, phone number masking, mobile, numeric and email validation, as well as recursive category handling—complete with usage scenarios and full source code to help developers quickly implement common backend tasks.

BackendPHPString Manipulation
0 likes · 8 min read
Common PHP Utility Functions for String Handling, Encryption, and Validation
Liangxu Linux
Liangxu Linux
Jul 22, 2021 · Fundamentals

Master Linux Shell: Variables, Strings, and Script Essentials

This guide explains how to use and name shell variables, manipulate strings, create and run Bash scripts, manage environment variables, perform arithmetic and relational operations, read user input, and handle common file‑system tasks, providing clear examples and command‑line snippets for each topic.

BashShell scriptingString Manipulation
0 likes · 21 min read
Master Linux Shell: Variables, Strings, and Script Essentials
Python Programming Learning Circle
Python Programming Learning Circle
Jun 9, 2021 · Fundamentals

Python Tips: String Manipulation, Iterator Slicing, Context Managers, Slots, Resource Limits, and More

This article presents a collection of practical Python techniques—including string cleaning with translation tables, iterator slicing with itertools, skipping file headers, keyword‑only arguments, custom context‑manager objects, memory‑saving __slots__, CPU and memory resource limits, export control via __all__, and simplified total ordering—illustrated with concise code examples.

IteratorPythonString Manipulation
0 likes · 9 min read
Python Tips: String Manipulation, Iterator Slicing, Context Managers, Slots, Resource Limits, and More
php Courses
php Courses
Dec 3, 2020 · Backend Development

Using str_replace in PHP: Basic and Advanced Examples

This tutorial explains PHP's str_replace function, demonstrating simple string replacement, array‑based replacements, and a less common usage where both search and replace parameters are arrays, with example outputs and screenshots illustrating each case.

String ManipulationTutorialstr_replace
0 likes · 3 min read
Using str_replace in PHP: Basic and Advanced Examples
php Courses
php Courses
Nov 10, 2020 · Backend Development

Detecting and Removing Emoji Characters in PHP Strings

This article explains how to determine whether a PHP string contains emoji characters, provides functions to detect and strip emojis using multibyte string functions, and discusses storing emoji‑containing strings in MySQL with utf8mb4 or base64 encoding.

String Manipulationmysql
0 likes · 3 min read
Detecting and Removing Emoji Characters in PHP Strings
Python Programming Learning Circle
Python Programming Learning Circle
Oct 27, 2020 · Fundamentals

Useful Python Code Snippets for Everyday Tasks

This article presents a collection of practical Python snippets covering string reversal, title‑casing, set‑based deduplication, list multiplication, list comprehensions, variable swapping, splitting, joining, palindrome checking, Counter usage, dictionary merging, timing, flattening, random sampling, digit extraction, uniqueness testing and more, each illustrated with clear code examples.

AlgorithmsData StructuresPython
0 likes · 10 min read
Useful Python Code Snippets for Everyday Tasks
Laravel Tech Community
Laravel Tech Community
Oct 15, 2020 · Backend Development

Using PHP wordwrap() to Split Strings into Specified Lengths

This article explains the PHP wordwrap() function, its parameters (string, width, break, cut), return value, and provides two practical examples demonstrating how to break long strings into lines with custom delimiters and optional word cutting.

BackendPHPString Manipulation
0 likes · 2 min read
Using PHP wordwrap() to Split Strings into Specified Lengths
Laravel Tech Community
Laravel Tech Community
Sep 9, 2020 · Backend Development

Understanding PHP preg_replace: Syntax, Parameters, and Practical Examples

This article explains PHP's preg_replace function, detailing its signature, parameter meanings, return values, and providing multiple code examples that demonstrate pattern matching, backreferences, array handling, and replacement limits for effective string manipulation in backend development.

PHPString Manipulationbackend-development
0 likes · 6 min read
Understanding PHP preg_replace: Syntax, Parameters, and Practical Examples
Laravel Tech Community
Laravel Tech Community
Aug 30, 2020 · Backend Development

PHP ltrim() Function: Removing Leading Characters from Strings

The article explains PHP's ltrim() function, its syntax, parameters, default characters removed, and provides example code demonstrating how to strip whitespace or custom characters from the start of a string, including removing ASCII control characters.

BackendPHPString Manipulation
0 likes · 3 min read
PHP ltrim() Function: Removing Leading Characters from Strings
MaGe Linux Operations
MaGe Linux Operations
Aug 30, 2020 · Fundamentals

Unlock Hidden Python Tricks: From String Cleanup to Memory Limits

Explore a collection of lesser‑known Python tricks—including string sanitization, iterator slicing, context‑manager shortcuts, memory‑saving slots, resource limits, controlled imports, and simplified ordering—each illustrated with concise code examples to help you write cleaner, more efficient programs.

IteratorMemory OptimizationString Manipulation
0 likes · 10 min read
Unlock Hidden Python Tricks: From String Cleanup to Memory Limits
Python Programming Learning Circle
Python Programming Learning Circle
Jun 13, 2020 · Fundamentals

Python One‑Liner Tricks: Summation, List Deduplication, Comprehensions, Swapping, Sorting, Counting, Space Removal, Regex, Doubling, and Multiplication Table

This article presents a collection of concise Python one‑liner techniques covering integer summation, list deduplication, list comprehensions, value swapping, length‑based sorting, character counting, whitespace removal, Chinese character regex, element doubling, and generating a multiplication table, each illustrated with brief explanations and code snippets.

ListOne-linerPython
0 likes · 4 min read
Python One‑Liner Tricks: Summation, List Deduplication, Comprehensions, Swapping, Sorting, Counting, Space Removal, Regex, Doubling, and Multiplication Table
Laravel Tech Community
Laravel Tech Community
Jun 3, 2020 · Backend Development

Mastering PHP's ltrim(): Remove Unwanted Characters from Strings

This article explains how PHP's ltrim() function removes leading whitespace or custom-specified characters from strings, details its parameters and default character set, and provides clear code examples demonstrating default trimming, custom masks, and range-based character removal.

BackendPHPString Manipulation
0 likes · 3 min read
Mastering PHP's ltrim(): Remove Unwanted Characters from Strings
Laravel Tech Community
Laravel Tech Community
May 24, 2020 · Backend Development

Mastering PHP substr(): How to Extract Substrings Effectively

This article explains the PHP substr() function, detailing its signature, parameter behavior for positive and negative start and length values, return values, and provides multiple code examples demonstrating various edge cases and expected outputs.

BackendPHPString Manipulation
0 likes · 3 min read
Mastering PHP substr(): How to Extract Substrings Effectively
Laravel Tech Community
Laravel Tech Community
May 21, 2020 · Backend Development

Master PHP’s ucwords(): Capitalize Words with Simple Code

This article explains PHP’s ucwords() function, detailing its purpose of converting the first character of each word in a string to uppercase, describing required parameters, return values, and providing a clear code example that demonstrates its usage and output.

BackendString ManipulationTutorial
0 likes · 1 min read
Master PHP’s ucwords(): Capitalize Words with Simple Code
FunTester
FunTester
Sep 29, 2019 · Backend Development

Convert Numbers to Chinese Characters in Java and Groovy: Multiple Approaches

When test account usernames can no longer contain digits, this guide shows how to transform numeric IDs into Chinese characters using several Java static methods and a Groovy implementation, covering basic loops, parsing, Java 8 streams, and functional style conversions.

BackendString Manipulationchinese-numbers
0 likes · 5 min read
Convert Numbers to Chinese Characters in Java and Groovy: Multiple Approaches
MaGe Linux Operations
MaGe Linux Operations
Jul 16, 2018 · Fundamentals

12 Essential Python Coding Challenges with Solutions and Explanations

This article presents twelve Python programming exercises covering string manipulation, list handling, regular expressions, binary conversion, and algorithmic sorting, each accompanied by clear explanations and complete code snippets that illustrate how to solve the problems step by step.

PythonString Manipulationalgorithm
0 likes · 13 min read
12 Essential Python Coding Challenges with Solutions and Explanations
MaGe Linux Operations
MaGe Linux Operations
Apr 19, 2018 · Operations

Master Bash Scripting: Safety, Functions, and Advanced Tricks

This guide presents essential Bash scripting practices—including safety flags, function definitions, variable annotations, modern command substitution, double‑bracket tests, powerful string manipulation, process substitution, here‑documents, debugging techniques, and advice on when to avoid Bash—in a concise, example‑driven format for reliable shell scripts.

BashShell scriptingString Manipulation
0 likes · 8 min read
Master Bash Scripting: Safety, Functions, and Advanced Tricks
Programmer DD
Programmer DD
Jul 29, 2017 · Frontend Development

Master Regex Position Matching: Anchors, Lookaheads, and Practical Examples

This guide explains what regex positions are, how the six ES5 anchor characters and look‑ahead/look‑behind assertions match them, and provides real‑world JavaScript examples such as inserting delimiters, formatting numbers, and building complex password‑validation patterns.

AnchorLookaheadString Manipulation
0 likes · 13 min read
Master Regex Position Matching: Anchors, Lookaheads, and Practical Examples
ITPUB
ITPUB
May 20, 2017 · Fundamentals

Boost Your Bash Scripts: Safety, Functions, and Advanced Tips

This article presents practical Bash scripting techniques—including safety flags, function definitions, variable annotations, modern command substitution, double‑bracket tests, powerful string manipulation, process substitution, here‑documents, built‑in variables, and debugging methods—to write more reliable and maintainable shell scripts.

BashShell scriptingString Manipulation
0 likes · 9 min read
Boost Your Bash Scripts: Safety, Functions, and Advanced Tips
360 Quality & Efficiency
360 Quality & Efficiency
Mar 15, 2017 · Frontend Development

Common JavaScript Techniques for Handling JSON: Conversion, Formatting, Replacement, and Traversal

This article provides a comprehensive guide to common JavaScript techniques for working with JSON, covering object and array structures, converting between JSON strings and objects, pretty‑printing with JSON.stringify, string replacement for log processing, and methods for iterating and recursively traversing JSON data.

Data FormattingJavaScriptRecursive Traversal
0 likes · 4 min read
Common JavaScript Techniques for Handling JSON: Conversion, Formatting, Replacement, and Traversal
21CTO
21CTO
Nov 27, 2016 · Backend Development

How to Implement a Custom str_concat Function in a PHP Extension

This article demonstrates how to create a PHP extension that adds a str_concat function, explaining the underlying zend_string structure, required macros, and providing complete source code to handle prefix detection and string concatenation within the extension.

Extension DevelopmentPHPString Manipulation
0 likes · 4 min read
How to Implement a Custom str_concat Function in a PHP Extension
Qunar Tech Salon
Qunar Tech Salon
Nov 24, 2014 · Fundamentals

Guava Utilities: Joiner, Splitter, CharMatcher, Charsets, CaseFormat, and Primitive Types

This article explains how to use Guava's Joiner, Splitter, CharMatcher, Charsets, CaseFormat, and primitive‑type utilities—including code examples, method tables, and best‑practice notes—to simplify string handling, character matching, charset conversion, case conversion, and primitive array operations in Java.

String Manipulationcharmatcherjoiner
0 likes · 17 min read
Guava Utilities: Joiner, Splitter, CharMatcher, Charsets, CaseFormat, and Primitive Types