Tag

regex

1 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
May 29, 2025 · Fundamentals

Master Regular Expressions: Key Patterns, Real-World Uses & Common Pitfalls

Regular expressions provide a powerful way to search, match, and extract patterns in text, and this guide covers fundamental syntax, practical applications such as email, phone, and date extraction, as well as performance, encoding, security, compatibility considerations, and common mistakes to avoid.

Pattern MatchingPythonbest practices
0 likes · 9 min read
Master Regular Expressions: Key Patterns, Real-World Uses & Common Pitfalls
Test Development Learning Exchange
Test Development Learning Exchange
May 9, 2025 · Fundamentals

Understanding Greedy and Non‑Greedy Matching in Regular Expressions

This article explains the difference between greedy and non‑greedy (lazy) matching in regular expressions, describes how quantifiers behave by default, shows how to switch to lazy mode using a trailing question mark, and provides multiple Python code examples illustrating both approaches.

greedy matchingnon-greedyquantifiers
0 likes · 8 min read
Understanding Greedy and Non‑Greedy Matching in Regular Expressions
Python Programming Learning Circle
Python Programming Learning Circle
May 9, 2025 · Backend Development

Detecting USB Insertion and Selectively Copying Files with Python

This article explains how to monitor the /Volumes directory on macOS to detect USB insertion, then uses Python's os, shutil, and re modules to recursively walk the USB file system, filter files by type, size, and modification time, and automatically copy selected files to a local folder.

OSautomationfile-copy
0 likes · 5 min read
Detecting USB Insertion and Selectively Copying Files with Python
Java Captain
Java Captain
Apr 27, 2025 · Backend Development

Extracting Personal Information from PDF, DOC, DOCX, and TXT Files Using Apache Tika

This tutorial demonstrates how to use Apache Tika in a Java project to parse PDF, Word, and text documents, extract specific fields such as name and ID number, and shows the required Maven dependencies and sample code for performing the extraction.

Apache TikaData ExtractionDocument Parsing
0 likes · 4 min read
Extracting Personal Information from PDF, DOC, DOCX, and TXT Files Using Apache Tika
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.

Pythonlist-issuesobject-identity
0 likes · 7 min read
Understanding Python’s `is` Operator, re.sub quirks, and list pitfalls
Java Captain
Java Captain
Mar 29, 2025 · Fundamentals

Java Regular Expressions: Syntax, Examples, and Usage

This article introduces Java regular expressions, covering basic syntax, character classes, logical operators, predefined tokens, quantifiers, practical code examples, common applications such as data validation, and performance optimization tips for effective string processing in Java.

JavaMatcherpattern
0 likes · 11 min read
Java Regular Expressions: Syntax, Examples, and Usage
Raymond Ops
Raymond Ops
Mar 21, 2025 · Backend Development

Understanding Nginx Location Matching: Rules, Prefixes, and Practical Examples

This article explains Nginx's location matching order, distinguishes literal and regex locations, clarifies the effects of prefixes like =, ^~, and @, provides detailed configuration examples, test results, and installation tips for the rewrite module.

BackendNginxServer Configuration
0 likes · 28 min read
Understanding Nginx Location Matching: Rules, Prefixes, and Practical Examples
Raymond Ops
Raymond Ops
Mar 9, 2025 · Operations

Master Nginx Regex and Location Matching: Rules, Priorities, and Real‑World Examples

This tutorial demonstrates how Nginx v1.23.2 processes regular expressions and location directives, explains the matching rules and priority hierarchy, and provides concrete configuration examples with code snippets and diagrams for each type of location prefix.

Nginxconfigurationlocation
0 likes · 14 min read
Master Nginx Regex and Location Matching: Rules, Priorities, and Real‑World Examples
Python Programming Learning Circle
Python Programming Learning Circle
Feb 27, 2025 · Fundamentals

Understanding Regular Expressions in Python with Practical Code Examples

This article introduces Python's regular expression capabilities, covering fundamental concepts, metacharacters, character classes, quantifiers, and practical usage of the re module's functions such as search, match, findall, and sub, with clear code examples.

Pattern MatchingPythoncoding tutorial
0 likes · 9 min read
Understanding Regular Expressions in Python with Practical Code Examples
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.

coding tutorialre moduleregex
0 likes · 8 min read
A Comprehensive Guide to Using Regular Expressions in Python
Python Programming Learning Circle
Python Programming Learning Circle
Nov 20, 2024 · Fundamentals

Python Regular Expressions: From Basics to Advanced Usage

This tutorial explains how to use Python's re module for regular expression operations, covering basic string matching, character classes, quantifiers, grouping, greedy vs. non‑greedy matching, substitution, and a practical example of extracting email addresses from text.

Text Matchingprogrammingre module
0 likes · 10 min read
Python Regular Expressions: From Basics to Advanced Usage
Test Development Learning Exchange
Test Development Learning Exchange
Sep 11, 2024 · Fundamentals

Python Basics: Dictionaries, Sets, File Operations, Regular Expressions, Logging, Unit Testing, Profiling, and Third‑Party Libraries

This tutorial introduces core Python concepts—including dictionaries, sets, file and directory handling, regular expressions, logging, unit testing, performance profiling, and common third‑party libraries—providing clear explanations and ready‑to‑run code examples for each topic.

Data StructuresPythonThird-Party Libraries
0 likes · 6 min read
Python Basics: Dictionaries, Sets, File Operations, Regular Expressions, Logging, Unit Testing, Profiling, and Third‑Party Libraries
DevOps Operations Practice
DevOps Operations Practice
Sep 9, 2024 · Fundamentals

Comprehensive Guide to Using grep: Basic Syntax, Common Options, and Advanced Techniques

This article provides a detailed tutorial on the Linux grep command, covering its basic syntax, frequently used options such as case‑insensitive search, line numbers, recursive search, context lines, and advanced features like regex patterns, file inclusion/exclusion, multiple patterns, and handling large files.

Linuxcommand linegrep
0 likes · 5 min read
Comprehensive Guide to Using grep: Basic Syntax, Common Options, and Advanced Techniques
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.

BackendMigrationPHP
0 likes · 13 min read
Migrating from ereg_replace() to preg_replace() in PHP: A Comprehensive Guide
Test Development Learning Exchange
Test Development Learning Exchange
Aug 7, 2024 · Fundamentals

Detailed Guide to Python String Processing with the re and string Modules

This article explains how to use Python's re and string modules for common string tasks such as pattern searching, substitution, splitting, and character checks, providing clear explanations and ten practical code examples.

Pythonfundamentalsre module
0 likes · 5 min read
Detailed Guide to Python String Processing with the re and string Modules
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 2, 2024 · Backend Development

Mastering SpringBoot Path Variables: Regex, Placeholders, and Suffix Matching

This guide explains how to use regular‑expression path variables, property placeholders, class‑level parameters, and suffix‑based content negotiation in SpringBoot 3.2.5, providing code examples, configuration tips, and practical request illustrations for flexible URL routing.

Content NegotiationPath VariablesSpringBoot
0 likes · 7 min read
Mastering SpringBoot Path Variables: Regex, Placeholders, and Suffix Matching
Top Architect
Top Architect
Jul 11, 2024 · Backend Development

Implementing Fuzzy Company Name Matching with MySQL REGEXP and Java

This article describes a backend solution for a company approval workflow that extracts key information from company names, tokenizes them using IKAnalyzer, applies MySQL REGEXP for fuzzy matching, and sorts results by match degree, complete with code examples and deployment tips.

BackendDatabaseJava
0 likes · 17 min read
Implementing Fuzzy Company Name Matching with MySQL REGEXP and Java
Test Development Learning Exchange
Test Development Learning Exchange
Jul 11, 2024 · Fundamentals

10 Handy Python Regular Expression Scripts for Common Tasks

This article presents ten concise Python regular‑expression scripts that demonstrate how to validate email addresses, extract URLs, replace numbers, assess password strength, split strings, match dates, strip HTML tags, capitalize words, find phone numbers, and replace specific characters, empowering developers with practical pattern‑matching techniques.

programmingregexregular expressions
0 likes · 5 min read
10 Handy Python Regular Expression Scripts for Common Tasks