Tag

regular expressions

1 views collected around this technical thread.

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
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
php中文网 Courses
php中文网 Courses
Mar 26, 2025 · Fundamentals

Comprehensive Guide to Python String Operations and Techniques

This comprehensive tutorial covers Python string fundamentals, including creation, indexing, slicing, common methods, formatting, encoding, regular expressions, performance optimizations, and real‑world examples, providing practical code snippets to enhance text processing efficiency for developers.

Pythonperformance optimizationprogramming fundamentals
0 likes · 8 min read
Comprehensive Guide to Python String Operations and Techniques
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 10, 2024 · Fundamentals

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

This article introduces core Python concepts—including dictionaries and sets as key‑value and unique collections, file and directory manipulation with the os module, regular expression handling, logging setup, unit testing with unittest, performance profiling via cProfile, and using popular third‑party libraries such as requests and BeautifulSoup.

Performance Profilingfile operationsregular expressions
0 likes · 7 min read
Python Basics: Dictionaries, Sets, File Operations, Regular Expressions, Logging, Unit Testing, Profiling, and Third‑Party Libraries
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.

IndexingPythonexercises
0 likes · 13 min read
Python String Indexing and Manipulation Exercises
Test Development Learning Exchange
Test Development Learning Exchange
Jul 21, 2024 · Fundamentals

10 Python Regular Expression Examples and How to Use Them

This article introduces Python's re module and demonstrates ten practical regular‑expression examples—including basic matching, email extraction, finding multiple patterns, substitution, anchoring, wildcard matching, grouping, repetition, non‑greedy matching, and look‑behind—complete with code snippets and expected outputs.

programmingre moduleregular expressions
0 likes · 7 min read
10 Python Regular Expression Examples and How to Use Them
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
Java Tech Enthusiast
Java Tech Enthusiast
Jul 8, 2024 · Databases

Fuzzy Company Name Matching Using MySQL Regular Expressions

The article describes a MySQL‑based fuzzy matching solution for preventing duplicate company entries in a business‑approval workflow, detailing preprocessing of Chinese company names, word segmentation with IKAnalyzer, RegExp pattern generation, and a custom SQL query that ranks results by keyword‑match ratio without using external search engines.

Chinese Word SegmentationMySQLcompany name validation
0 likes · 9 min read
Fuzzy Company Name Matching Using MySQL Regular Expressions
Python Programming Learning Circle
Python Programming Learning Circle
Jun 15, 2024 · Fundamentals

Six Practical Python Tips to Improve Coding Efficiency

This article presents six practical Python techniques—including exception handling, list comprehensions, regular expressions, web scraping with BeautifulSoup, lambda functions, and simple data visualizations using matplotlib—to help developers write cleaner, more efficient code and enhance their programming workflow.

Data VisualizationException HandlingProgramming Tips
0 likes · 6 min read
Six Practical Python Tips to Improve Coding Efficiency
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 2, 2024 · Fundamentals

Understanding Regular Expressions: Syntax, Engines, and Best Practices

This article provides a comprehensive overview of regular expressions, covering their basic syntax, meta‑characters, quantifiers, greedy vs. non‑greedy matching, look‑ahead/behind, capture groups, engine types such as NFA and DFA, performance pitfalls, optimization tips, major flavors (POSIX, PCRE, RE2), and practical examples for password validation and code‑block extraction.

DFANFAPattern Matching
0 likes · 37 min read
Understanding Regular Expressions: Syntax, Engines, and Best Practices
Tencent Architect
Tencent Architect
Jan 16, 2024 · Artificial Intelligence

Metis: AI‑Driven In‑Network Regular Expression Enhancement for High‑Performance Traffic Inspection

The article introduces Metis, an AI‑based solution that replaces traditional regular‑expression matching for network traffic inspection, offering faster, more accurate detection, a compact model deployable on resource‑constrained P4 switches, and significant performance and cost benefits for cloud gateway security.

AINetwork SecurityP4
0 likes · 9 min read
Metis: AI‑Driven In‑Network Regular Expression Enhancement for High‑Performance Traffic Inspection
Python Programming Learning Circle
Python Programming Learning Circle
Dec 14, 2023 · Fundamentals

Python Regular Expressions with the re Module: Syntax, Functions, and Practical Examples

This article introduces regular expressions, explains Python's re module and its core functions such as match, search, and sub, and demonstrates their usage with clear code examples and visual illustrations of special syntax, character classes, and grouping constructs.

Pythoncoding tutorialre module
0 likes · 8 min read
Python Regular Expressions with the re Module: Syntax, Functions, and Practical Examples
php中文网 Courses
php中文网 Courses
Nov 23, 2023 · Backend Development

PHP Regular Expression Functions: Syntax, Usage, and Examples

This article explains PHP's regular expression functions—including preg_match, preg_match_all, preg_replace, and preg_split—detailing their syntax, parameters, and practical code examples, and also covers advanced regex metacharacters and special symbols for powerful string matching and manipulation.

PHPbackend developmentpreg_match
0 likes · 7 min read
PHP Regular Expression Functions: Syntax, Usage, and Examples
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.

JavaScriptTutorialValidation
0 likes · 27 min read
Understanding and Using Regular Expressions in JavaScript
Python Programming Learning Circle
Python Programming Learning Circle
Sep 22, 2023 · Fundamentals

Comprehensive Regular Expression Cheat Sheet for Common Validation Scenarios

This article provides a detailed cheat‑sheet of frequently used regular expressions for validating numbers, characters, dates, URLs, IP addresses, and other special formats, complete with explanations and ready‑to‑copy code snippets for developers needing quick pattern references.

PythonValidationdata validation
0 likes · 15 min read
Comprehensive Regular Expression Cheat Sheet for Common Validation Scenarios
Test Development Learning Exchange
Test Development Learning Exchange
May 18, 2023 · Fundamentals

Three Python 3 Methods for Bulk File Renaming

This article introduces three Python 3 techniques for bulk file renaming—recursive numbering, renaming based on creation timestamps, and using regular expressions—explaining their advantages, providing complete code examples, and guiding readers on adapting the scripts for their own file management needs.

Bulk ProcessingPythonfile-renaming
0 likes · 6 min read
Three Python 3 Methods for Bulk File Renaming
IT Services Circle
IT Services Circle
Mar 26, 2023 · Fundamentals

Common Regular Expression Metacharacters and Their Usage in Python

This article explains the most frequently used regular expression symbols in Python, covering ordinary metacharacters, the OR operator, escape sequences, anchors, quantifiers, grouping, and shorthand character classes, each illustrated with clear code examples and explanations.

Pattern MatchingPythonmetacharacters
0 likes · 6 min read
Common Regular Expression Metacharacters and Their Usage in Python
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Feb 23, 2023 · Fundamentals

Regular Expressions and Finite Automata: Theory, Performance, and Conversion

The article shows how greedy versus lazy regex patterns can differ dramatically in speed, explains that regular expressions are compiled into finite automata, walks through converting regexes to NFAs, transforming them into DFAs, minimizing those DFAs, and illustrates how backtracking and catastrophic backtracking arise, urging developers to grasp automata theory for writing efficient, reliable patterns.

DFANFAThompson algorithm
0 likes · 22 min read
Regular Expressions and Finite Automata: Theory, Performance, and Conversion