Tagged articles

preg_replace

6 articles · Page 1 of 1
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
Sep 5, 2024 · Backend Development

Migrating from ereg_replace() to preg_replace() in PHP: A Comprehensive Guide

This guide explains why and how to replace the deprecated ereg_replace() with the modern preg_replace() in PHP, covering performance benefits, syntax differences, migration steps, advanced usage, and practical code examples to help developers update their code safely and efficiently.

MigrationPHPRegex
0 likes · 13 min read
Migrating from ereg_replace() to preg_replace() in PHP: A Comprehensive Guide
php Courses
php Courses
Nov 15, 2023 · Backend Development

Using PHP preg_replace() for String Replacement: Syntax, Examples, and Tips

This article explains the PHP preg_replace() function, its basic syntax, and provides multiple code examples showing how to replace specific characters, optional characters, digits, perform case‑insensitive replacements, and mask email addresses using regular expressions.

RegexTutorialpreg_replace
0 likes · 4 min read
Using PHP preg_replace() for String Replacement: Syntax, Examples, and Tips
php Courses
php Courses
Jul 13, 2023 · Backend Development

How to Delete a Substring in PHP Using Various Functions

This article explains four PHP techniques—str_replace, substr_replace, ereg_replace, and preg_replace—for removing specific characters or patterns from a string, providing code examples and describing the resulting output for each method.

preg_replacestr_replacestring-manipulation
0 likes · 5 min read
How to Delete a Substring in PHP Using Various Functions