Tagged articles
305 articles
Page 3 of 4
Python Programming Learning Circle
Python Programming Learning Circle
Feb 9, 2020 · Fundamentals

Understanding Python's re Module and Regular Expressions

This article introduces Python's re module, explaining regular expression fundamentals, key functions such as match, search, compile, sub, findall, finditer, and split, detailing their syntax, parameters, flags, and providing numerous code examples to illustrate pattern matching, searching, replacing, and splitting strings.

re moduleregexstring-matching
0 likes · 17 min read
Understanding Python's re Module and Regular Expressions
Java Captain
Java Captain
Feb 1, 2020 · Fundamentals

A Beginner's Guide to Regular Expressions: Basics, Advanced Features, and Practical Code Samples

This article provides a clear, step‑by‑step tutorial on regular expressions—covering fundamental metacharacters, quantifiers, grouping, alternation, character classes, assertions, capturing, back‑references, greedy vs. lazy matching, and includes runnable code snippets in Java and JavaScript for common validation tasks.

JavaScriptTutorialjava
0 likes · 20 min read
A Beginner's Guide to Regular Expressions: Basics, Advanced Features, and Practical Code Samples
Efficient Ops
Efficient Ops
Jan 22, 2020 · Fundamentals

Why a Single Regex Can Crash Your Java Service: Understanding NFA Backtracking

An unexpected CPU spike in a Java service was traced to a complex URL‑validation regex whose NFA backtracking caused catastrophic performance, and the article explains the regex engine’s behavior, identifies the problematic pattern, and shows how to refactor the expression to eliminate excessive backtracking.

BacktrackingCPUNFA
0 likes · 12 min read
Why a Single Regex Can Crash Your Java Service: Understanding NFA Backtracking
Liangxu Linux
Liangxu Linux
Jan 7, 2020 · Fundamentals

Master awk: From Basics to Advanced Text Processing with Real Examples

This article provides a comprehensive guide to awk, covering its origins, syntax, options, keywords, operators, built‑in variables, regular‑expression meta‑characters, functions, control flow, system interaction, and practical examples that help readers efficiently process and analyze text data on the command line.

Shell scriptingawkregex
0 likes · 13 min read
Master awk: From Basics to Advanced Text Processing with Real Examples
ITPUB
ITPUB
Dec 10, 2019 · Fundamentals

Master Linux Text Search: 30 Essential Grep Techniques You Need to Know

This comprehensive Linux tutorial explains why grep is indispensable, demonstrates basic and advanced string searches, multiple patterns, regex usage, recursive scans, whitespace handling, differences among grep variants, find vs grep, compressed‑file searches, IP and email extraction, case handling, exclusions, replacements, line numbers, context lines and result sorting.

GrepLinuxcommand-line
0 likes · 15 min read
Master Linux Text Search: 30 Essential Grep Techniques You Need to Know
IT Architects Alliance
IT Architects Alliance
Nov 25, 2019 · Fundamentals

Why a Complex URL Regex Can Max Out Java CPU and How to Fix It

A Java service suffered near‑100% CPU usage because a URL‑validation regular expression caused catastrophic backtracking, and the article explains the NFA engine behavior, identifies the regex flaws, and shows how to rewrite the pattern with possessive quantifiers to dramatically improve performance.

BacktrackingCPUNFA
0 likes · 12 min read
Why a Complex URL Regex Can Max Out Java CPU and How to Fix It
Liangxu Linux
Liangxu Linux
Nov 6, 2019 · Operations

Master Bulk File Renaming in Linux with the Powerful rename Command

This guide explains how to use the Linux rename command for batch renaming files, covering basic syntax, Perl‑style regular expressions, preview options like -v and -n, case conversion, and common pitfalls, enabling efficient and safe mass file renaming.

batch renamingcommand-lineregex
0 likes · 7 min read
Master Bulk File Renaming in Linux with the Powerful rename Command
FunTester
FunTester
Oct 9, 2019 · Backend Development

How to Build a Java/Groovy Web Crawler with Regex and MySQL Storage

This article demonstrates a Java‑based web crawler written in Groovy that uses regular‑expression parsing to retrieve paginated company data from a government portal, constructs SQL insert statements, and stores the results in MySQL, with full source code and structural screenshots.

Data ExtractionGroovyWeb Crawler
0 likes · 6 min read
How to Build a Java/Groovy Web Crawler with Regex and MySQL Storage
FunTester
FunTester
Sep 15, 2019 · Backend Development

How to Build a Java HttpClient Spider for Scraping Movie Details and Download Links

This article explains how to update and use a Java HttpClient‑based spider that removes duplicate links, handles legacy page formats, extracts movie metadata and download URLs (magnet, ed2k, Baidu Pan), and stores the results in a MySQL database, with complete source code examples.

Data ExtractionHttpClientScraping
0 likes · 12 min read
How to Build a Java HttpClient Spider for Scraping Movie Details and Download Links
FunTester
FunTester
Sep 12, 2019 · Backend Development

Scraping HTML Tables with Java Regex and Generating SQL Inserts

The article walks through a Java solution for extracting multilingual data from an HTML table using regular expressions, handling spacing and encoding issues, splitting fields, and constructing INSERT statements to populate a country_code database table.

BackendData ExtractionWeb Scraping
0 likes · 6 min read
Scraping HTML Tables with Java Regex and Generating SQL Inserts
Liangxu Linux
Liangxu Linux
Aug 22, 2019 · Fundamentals

Learn Regex Fast: Free 2.4k‑Star GitHub Tutorial with Interactive Exercises

This article introduces the popular learn‑regex GitHub project—a 24 000‑star, Chinese‑localized tutorial that covers regex fundamentals, meta‑characters, and provides online practice via regex101.com, helping programmers quickly master regular expressions across languages.

learn-regexonline practiceregex
0 likes · 4 min read
Learn Regex Fast: Free 2.4k‑Star GitHub Tutorial with Interactive Exercises
Efficient Ops
Efficient Ops
Jul 15, 2019 · Fundamentals

Mastering Regular Expressions: Essential Rules and Advanced Techniques

This article provides a comprehensive guide to regular expressions, covering basic concepts, character classes, quantifiers, special symbols, greedy vs. lazy matching, backreferences, lookahead/lookbehind assertions, and practical tips for writing robust patterns in programming.

pattern-matchingprogramming fundamentalsregex
0 likes · 11 min read
Mastering Regular Expressions: Essential Rules and Advanced Techniques
ITPUB
ITPUB
Jul 9, 2019 · Fundamentals

Mastering sed: A Complete Guide to Stream Editing on Linux

This article provides a thorough, step‑by‑step tutorial on the Linux stream editor sed, covering its basic workflow, essential options like -e, -f and -n, a full list of editing commands, text substitution techniques, line addressing, deletion, insertion, modification, transliteration, and file I/O operations, all illustrated with concrete command‑line examples.

Linuxcommand-lineregex
0 likes · 13 min read
Mastering sed: A Complete Guide to Stream Editing on Linux
Liangxu Linux
Liangxu Linux
Jun 20, 2019 · Fundamentals

Master grep: Essential Linux Text Search Commands and Tips

This guide explains how to use the Linux grep command for powerful text searching, covering common options, file content searches, recursive scans, exclusion patterns, case‑insensitive matching, context lines, rule‑file searches, and regular‑expression techniques with practical examples.

LinuxShellTutorial
0 likes · 9 min read
Master grep: Essential Linux Text Search Commands and Tips
NetEase Game Operations Platform
NetEase Game Operations Platform
May 5, 2019 · Fundamentals

Fast Search Tools Comparison: ripgrep and Its Alternatives

This article compares the speed and features of various command‑line search utilities—including grep, The Platinum Searcher, ucg, ack, sift, The Silver Searcher, git‑grep and ripgrep—provides benchmark tables for directory and file searches, and outlines ripgrep's capabilities and editor integrations.

Tool comparisoncommand-lineregex
0 likes · 8 min read
Fast Search Tools Comparison: ripgrep and Its Alternatives
MaGe Linux Operations
MaGe Linux Operations
Apr 4, 2019 · Backend Development

Build a Python Crawler to Auto‑Collect TV Drama Download Links

This article describes how the author built a Python web crawler to automatically generate numeric URLs, fetch TV drama pages from the 天天美剧 site, extract ed2k download links using regular expressions, and save them into organized text files, streamlining the download process with Thunder.

Crawlerdata collectionmultithreading
0 likes · 6 min read
Build a Python Crawler to Auto‑Collect TV Drama Download Links
JavaEdge
JavaEdge
Mar 21, 2019 · Backend Development

Master Web Crawling with Scrapy: From Tech Choices to Powerful Regex Extraction

This guide walks through selecting Scrapy over Requests + BeautifulSoup, explains web page types, outlines crawler use‑cases, details regular‑expression syntax and non‑greedy matching, demonstrates practical regex patterns with images, compares depth‑first and breadth‑first crawling, and covers URL deduplication and string‑encoding pitfalls in Python.

PythonScrapyWeb Crawling
0 likes · 11 min read
Master Web Crawling with Scrapy: From Tech Choices to Powerful Regex Extraction
Ops Development Stories
Ops Development Stories
Feb 24, 2019 · Fundamentals

Master Python’s re Module: Essential Regex Techniques Explained

This article provides a comprehensive guide to Python’s re module, covering regex definitions, common methods, special character sets, pattern‑matching functions, match object attributes, and practical code examples for tasks such as validating phone numbers, IP addresses, and HTML snippets.

PythonString processingpattern-matching
0 likes · 13 min read
Master Python’s re Module: Essential Regex Techniques Explained
21CTO
21CTO
Feb 16, 2019 · Fundamentals

Mastering Regular Expressions: Numbers, Emails, Phone Numbers & HTML

This tutorial walks you through building and testing regular expressions for common patterns such as floating‑point numbers, optional fractions, exponents, phone numbers, email addresses, and simple HTML tags, explaining each step and showing practical examples.

pattern-matchingregexregular expressions
0 likes · 8 min read
Mastering Regular Expressions: Numbers, Emails, Phone Numbers & HTML
MaGe Linux Operations
MaGe Linux Operations
Feb 13, 2019 · Fundamentals

Master Awk: Unlock Powerful Text Processing on the Command Line

This comprehensive guide explains how Awk, the versatile Unix text‑processing tool, differs from sed and grep, showcases its programming features, command‑line syntax, record and field handling, built‑in variables, functions, and provides numerous practical examples to help readers start scripting with Awk effectively.

automationawkcommand-line
0 likes · 28 min read
Master Awk: Unlock Powerful Text Processing on the Command Line
MaGe Linux Operations
MaGe Linux Operations
Dec 27, 2018 · Fundamentals

Master Python Regular Expressions: Syntax, Flags, and Practical Usage

This article provides a comprehensive guide to Python regular expressions, covering regex syntax, character classes, quantifiers, groups, assertions, conditional matches, flags, the re module’s core functions, match object methods, and practical examples for effective pattern matching.

Pythonpattern-matchingre module
0 likes · 13 min read
Master Python Regular Expressions: Syntax, Flags, and Practical Usage
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 1, 2018 · Fundamentals

Master Python Regex: Extract Any Date Format with Simple Patterns

This article walks through building and refining a Python regular expression that reliably matches a wide range of Chinese date formats—including year‑month‑day, year/month/day, and year‑month—explaining each component, testing against sample strings, and presenting the final pattern that captures all cases.

Tutorialdate extractionpattern-matching
0 likes · 5 min read
Master Python Regex: Extract Any Date Format with Simple Patterns
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 30, 2018 · Fundamentals

Master Python Regex: Extract Dates with One Powerful Pattern

This tutorial walks through building and refining a Python regular expression that reliably matches a wide range of Chinese date formats—such as "2018年6月7日", "2018/6/7", "2018-06-07" and "2018-06"—by explaining each component, testing against sample strings, and presenting the final concise pattern.

PythonTutorialdate extraction
0 likes · 6 min read
Master Python Regex: Extract Dates with One Powerful Pattern
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 26, 2018 · Fundamentals

Master Python’s \w and \W: When to Use Each Regex Token

This article explains the meanings and differences of Python regex tokens \w and \W, demonstrates how they match various characters through step‑by‑step examples, and shows why \w fails with symbols like hyphens while \W succeeds, helping readers master practical regex usage.

Pythonregexstring-matching
0 likes · 5 min read
Master Python’s \w and \W: When to Use Each Regex Token
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 26, 2018 · Fundamentals

Master Python Regex: 14 Essential Special Characters Explained

This article provides a concise tutorial on Python regular expression special characters, detailing the meaning and usage of symbols such as \d, ?, +, {n}, |, and others, illustrated with examples and images, helping readers quickly grasp how to match digits, whitespace, word characters, and more in pattern matching.

PythonSpecial CharactersTutorial
0 likes · 5 min read
Master Python Regex: 14 Essential Special Characters Explained
UC Tech Team
UC Tech Team
Oct 11, 2018 · Backend Development

Avoiding Single Empty Seats in Cinema Seat Selection Using Regex

This article explains how to prevent isolated empty seats when users select cinema seats by modeling seat layouts, defining forbidden patterns, converting them into regular expressions, and implementing concise JavaScript validation code that reduces complex nested if‑statements to a few clear lines.

Cinemaalgorithmregex
0 likes · 6 min read
Avoiding Single Empty Seats in Cinema Seat Selection Using Regex
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 1, 2018 · Fundamentals

Master Python Regex: Unlock $ and ? for Precise String Matching

This article explains Python regular expression special characters such as $ and ?, demonstrates greedy and non‑greedy matching with step‑by‑step examples and screenshots, and shows how to extract substrings correctly using appropriate patterns, helping readers master precise string extraction for web crawling.

Pythongreedynon-greedy
0 likes · 6 min read
Master Python Regex: Unlock $ and ? for Precise String Matching
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 1, 2018 · Fundamentals

Master Python Regex: When '+' Beats '*' for Precise Matching

This article explains how Python’s regex quantifiers '+' and '*' differ, demonstrating with step‑by‑step examples how '+' requires at least one occurrence of the preceding character, while '*' allows zero or more, and shows the resulting matches through clear screenshots.

Pythonpattern-matchingquantifiers
0 likes · 4 min read
Master Python Regex: When '+' Beats '*' for Precise Matching
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 1, 2018 · Fundamentals

Master Python Regex for Web Crawling: Quick Guide to ^, ., and *

This article explains why regular expressions are essential for Python web crawling, introduces the special characters ^, ., and *, and demonstrates their use with clear code examples and output screenshots, helping readers quickly grasp regex fundamentals for extracting patterns from HTML content.

Data ExtractionTutorialregex
0 likes · 5 min read
Master Python Regex for Web Crawling: Quick Guide to ^, ., and *
Liangxu Linux
Liangxu Linux
Sep 28, 2018 · Fundamentals

Master Linux Regex: Practical grep Examples and Patterns

This guide explains Linux regular expressions, distinguishes shell and regex meta‑characters, shows how to enable colored grep output, creates a sample text file, and provides dozens of concrete grep/egrep commands with explanations and results for common pattern‑matching tasks.

Shellcommand-lineregex
0 likes · 10 min read
Master Linux Regex: Practical grep Examples and Patterns
Java Captain
Java Captain
Sep 27, 2018 · Fundamentals

A Beginner's Guide to Regular Expressions: Basics and Advanced Topics

This tutorial introduces regular expressions across programming languages, covering fundamental metacharacters, quantifiers, grouping, alternation, character classes, assertions, capturing, backreferences, greedy vs. lazy matching, and provides practical Java code examples for common validation tasks.

coding tutorialjavapattern-matching
0 likes · 17 min read
A Beginner's Guide to Regular Expressions: Basics and Advanced Topics
Efficient Ops
Efficient Ops
Jun 26, 2018 · Fundamentals

Why a Simple Regex Can Crash Your CPU: Understanding NFA Backtracking

The article examines a Java URL‑validation regex that caused near‑100% CPU usage, explains how Java's NFA engine and backtracking lead to catastrophic performance, and shows how to rewrite the pattern with possessive quantifiers and proper character classes to eliminate the issue.

BacktrackingNFAjava
0 likes · 12 min read
Why a Simple Regex Can Crash Your CPU: Understanding NFA Backtracking
Tencent Cloud Developer
Tencent Cloud Developer
Jun 19, 2018 · Backend Development

Understanding Catastrophic Backtracking in Java Regular Expressions and How to Fix It

During a production incident a Java service’s URL‑validation regex caused near‑100 % CPU due to catastrophic backtracking from a greedy domain pattern, which was fixed by adding missing characters to the final class and converting the domain part to a possessive or atomic quantifier, preventing exponential matching.

BacktrackingNFAjava
0 likes · 13 min read
Understanding Catastrophic Backtracking in Java Regular Expressions and How to Fix It
ITPUB
ITPUB
Apr 9, 2018 · Fundamentals

Mastering grep: 12 Powerful Ways to Search and Filter Files on Linux

This guide walks you through installing grep, then demonstrates twelve practical techniques—from locating installed packages and filtering configuration files to counting matches, recursive searches, and using extended regular expressions—empowering you to efficiently search and process text on any Linux system.

GrepLinuxcommand-line
0 likes · 9 min read
Mastering grep: 12 Powerful Ways to Search and Filter Files on Linux
ITPUB
ITPUB
Mar 7, 2018 · Fundamentals

Mastering grep: 12 Practical Linux Search Techniques

This guide walks you through twelve essential grep use‑cases on Linux, from installing the tool and listing packages to filtering files, displaying line numbers, counting matches, recursive searches, exact‑word matches, and working with compressed or regex‑based searches, all illustrated with clear command examples.

GrepTutorialcommand-line
0 likes · 9 min read
Mastering grep: 12 Practical Linux Search Techniques
ITPUB
ITPUB
Jan 23, 2018 · Operations

Validate IP Addresses in Bash: Two Reliable Shell Scripts

This article explains why validating IP addresses is essential in shell scripting, then presents two Bash methods—using awk/grep and regular‑expression matching—followed by a looped version that repeatedly prompts for input until a correct IP is entered, complete with example commands.

BashIP validationSysadmin
0 likes · 6 min read
Validate IP Addresses in Bash: Two Reliable Shell Scripts
Qunar Tech Salon
Qunar Tech Salon
Dec 29, 2017 · Fundamentals

12 Essential Python Programming Basics: Regular Expressions, Directory Traversal, List Sorting, Deduplication, Dictionary Sorting, Data Conversion, Time Operations, Command‑Line Parsing, Print Formatting, Base Conversion, System Commands, Signal Handling, and File I/O

This article presents a concise collection of twelve fundamental Python techniques—including regex substitution, directory walking, list sorting and deduplication, dictionary sorting, conversions between dict/list/string, time manipulation, getopt argument parsing, formatted printing, numeral base conversion, executing system commands, handling Ctrl+C/Ctrl+D signals, and file reading/writing—each illustrated with ready‑to‑run code snippets.

Argument ParsingData StructuresFile I/O
0 likes · 14 min read
12 Essential Python Programming Basics: Regular Expressions, Directory Traversal, List Sorting, Deduplication, Dictionary Sorting, Data Conversion, Time Operations, Command‑Line Parsing, Print Formatting, Base Conversion, System Commands, Signal Handling, and File I/O
21CTO
21CTO
Dec 15, 2017 · Backend Development

Master Web Scraping with Python: Regex, BeautifulSoup & Selenium

This guide demonstrates how to combine Python's regex, BeautifulSoup, and Selenium (including Chrome and headless PhantomJS) for powerful web scraping, covering tag matching, handling Ajax, iFrames, cookie management, and practical code examples for extracting and interacting with dynamic web content.

Headless BrowserSeleniumWeb Scraping
0 likes · 10 min read
Master Web Scraping with Python: Regex, BeautifulSoup & Selenium
MaGe Linux Operations
MaGe Linux Operations
Dec 1, 2017 · Fundamentals

Unlocking Python’s re Module: Hidden Gems and Advanced Techniques

This article explores the stability, design quirks, and advanced features of Python’s re library—including iterative matching, the undocumented scanner, and strategies for negative matching—showcasing why it remains a cornerstone of the language despite its age.

Advanced TechniquesPythonStandard Library
0 likes · 11 min read
Unlocking Python’s re Module: Hidden Gems and Advanced Techniques
MaGe Linux Operations
MaGe Linux Operations
Nov 21, 2017 · Backend Development

How to Scrape All Chinese Stock Data with Python: A Step‑by‑Step Guide

This tutorial explains how to collect the names and trading information of every stock listed on the Shanghai and Shenzhen exchanges using Python 3.5, requests, BeautifulSoup and regular expressions, then store the results in a file through a clear three‑step process of fetching the stock list, retrieving each stock's page, parsing the HTML and writing the data.

Stock Databeautifulsoupfile-output
0 likes · 11 min read
How to Scrape All Chinese Stock Data with Python: A Step‑by‑Step Guide
MaGe Linux Operations
MaGe Linux Operations
Sep 9, 2017 · Backend Development

Build a Python Image Downloader: Step‑by‑Step Web Scraping Tutorial

This tutorial walks through building a Python web scraper that automatically downloads images from Baidu by analyzing requirements, inspecting page source, crafting regex patterns, and implementing the crawler with requests, offering step‑by‑step guidance, code snippets, and troubleshooting tips.

PythonWeb Scrapingimage-downloader
0 likes · 7 min read
Build a Python Image Downloader: Step‑by‑Step Web Scraping Tutorial
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 28, 2017 · Information Security

7 Surprising JavaScript Tricks to Bypass XSS Filters

This article reveals a collection of unconventional JavaScript techniques—including regex replacement, Unicode escapes, eval tricks, unusual operator combinations, custom getters/setters, and URL‑encoded payloads—that can evade common XSS filters and strengthen your understanding of web security.

BypassUnicodeXSS
0 likes · 10 min read
7 Surprising JavaScript Tricks to Bypass XSS Filters
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 25, 2017 · Fundamentals

Avoid Catastrophic Backtracking: How Regex Can Crash Your Server

A detailed exploration of how a complex regular expression used for shop‑name validation caused CPU spikes due to catastrophic backtracking, explaining DFA vs NFA engines, greedy, lazy and possessive quantifiers, and offering practical tips to write performant regexes.

DFANFAcatastrophic backtracking
0 likes · 9 min read
Avoid Catastrophic Backtracking: How Regex Can Crash Your Server
21CTO
21CTO
Aug 5, 2017 · Backend Development

How I Reduced Log Keyword Counting from Hours to Minutes Using PHP, Grep, Regex & Trie

This article walks through solving a massive log‑keyword counting task—600,000 short messages and 50,000 keywords—by evolving from a simple grep‑based approach to regex optimizations, word‑splitting, a trie data structure, and finally a multi‑process Redis queue, achieving a performance boost from hours to under ten minutes.

GrepLog ProcessingTrie
0 likes · 15 min read
How I Reduced Log Keyword Counting from Hours to Minutes Using PHP, Grep, Regex & Trie
Programmer DD
Programmer DD
Aug 2, 2017 · Fundamentals

Mastering Regex: How to Build Precise and Efficient Regular Expressions

This article explains how to construct regular expressions that balance matching expected strings, avoiding false matches, maintaining readability, and achieving performance, while covering when to use regex, practical JavaScript examples, accuracy techniques for phone numbers and floats, and key optimization strategies.

JavaScriptaccuracyoptimization
0 likes · 12 min read
Mastering Regex: How to Build Precise and Efficient Regular Expressions
Programmer DD
Programmer DD
Aug 1, 2017 · Frontend Development

Master Regex Splitting: Break Down Complex Patterns with Confidence

This article explains how to dissect JavaScript regular expressions into their structural components, covering operators, precedence, common pitfalls, and practical examples such as ID card and IPv4 validation, enabling readers to read and write regexes more reliably.

operatorspattern splittingregex
0 likes · 10 min read
Master Regex Splitting: Break Down Complex Patterns with Confidence
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
21CTO
21CTO
Jul 2, 2017 · Fundamentals

Essential Regex Cheat Sheet: 20 Common Validation Patterns for Developers

This cheat sheet compiles twenty practical regular‑expression patterns—including date, password, email, ID, IP, URL, and HTML validation examples—along with JavaScript snippets, giving developers a quick reference to boost input‑checking efficiency across front‑end and back‑end projects.

BackendJavaScriptfrontend
0 likes · 8 min read
Essential Regex Cheat Sheet: 20 Common Validation Patterns for Developers
MaGe Linux Operations
MaGe Linux Operations
Jun 27, 2017 · Fundamentals

Mastering sed: Stream Editing Basics, Commands, and Advanced Tricks

This article explains the fundamentals of the sed stream editor, covering its execution model, common parameters and actions, addressing methods, pattern and hold spaces, label usage, and provides multiple practical examples illustrating typical command patterns and advanced techniques.

Linuxcommand-lineregex
0 likes · 8 min read
Mastering sed: Stream Editing Basics, Commands, and Advanced Tricks
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 9, 2017 · Frontend Development

Master JavaScript Regex: String Methods and RegExp Object Explained

This article explains the two main aspects of using regular expressions in JavaScript—string methods such as search, replace, match, and split, and the RegExp object with its properties, constructor, and methods like exec, test, and compile, including practical tips and common pitfalls.

RegExpString Methodspattern-matching
0 likes · 6 min read
Master JavaScript Regex: String Methods and RegExp Object Explained
ZhiKe AI
ZhiKe AI
Feb 21, 2017 · Fundamentals

Mastering awk: Powerful Text Analysis and Reporting Beyond grep and sed

This article introduces awk as a versatile text‑processing language, explains its origins and variants, details command‑line syntax and three invocation methods, and walks through practical examples—from extracting fields in system files to using built‑in variables, conditionals, loops, arrays, and formatted output with print and printf.

Shell scriptingUnixawk
0 likes · 11 min read
Mastering awk: Powerful Text Analysis and Reporting Beyond grep and sed
MaGe Linux Operations
MaGe Linux Operations
Feb 8, 2017 · Fundamentals

Master Python’s re Module: A Complete Guide to Regular Expressions

This article explains how Python’s re module implements regular expressions—a powerful, language‑agnostic tool for pattern matching, validation, searching, and text manipulation—covering compilation, core functions, metacharacters, grouping, and practical usage examples.

re moduleregexregular expressions
0 likes · 7 min read
Master Python’s re Module: A Complete Guide to Regular Expressions
Aotu Lab
Aotu Lab
Dec 30, 2016 · Fundamentals

Master Common Regex Patterns: Digits, Times, IPs, and HTML Tags

This article walks through practical regular‑expression exercises, explains each solution with clear JavaScript examples, and then expands to real‑world patterns for matching dollar amounts, 24‑hour times, IP addresses, quoted strings, and HTML tags, offering tips for building robust regexes.

IP addresshtml-tagpattern-matching
0 likes · 13 min read
Master Common Regex Patterns: Digits, Times, IPs, and HTML Tags
Node Underground
Node Underground
Sep 10, 2016 · Information Security

Beware the 4 Evil Regex Patterns That Can Crash Your Node.js App

The article highlights four dangerous regular expression patterns that can cause severe performance degradation in Node.js, turning millisecond operations into minutes, potentially leading to timeouts, event‑loop blocking, and broader security risks, and points to additional encoding and cookie safety recommendations.

denial-of-serviceperformanceregex
0 likes · 2 min read
Beware the 4 Evil Regex Patterns That Can Crash Your Node.js App
Practical DevOps Architecture
Practical DevOps Architecture
Jul 11, 2016 · Fundamentals

Regular Expression Syntax and Metacharacter Guide

This article explains regular expression delimiters, common metacharacters, quantifiers, anchors, character classes, logical operators, negation, and escaping, providing clear examples of each pattern and how they match specific strings in target text.

metacharacterspattern-matchingregex
0 likes · 8 min read
Regular Expression Syntax and Metacharacter Guide
21CTO
21CTO
Apr 12, 2016 · Backend Development

How to Build a PHP cURL Spider to Scrape Zhihu User Data and Visualize It

This article walks through using PHP's cURL extension to crawl tens of thousands of Zhihu user profiles, parse the HTML with regular expressions, store the extracted data efficiently, and present the results with responsive charts and dashboards.

Web ScrapingcURLmysql
0 likes · 9 min read
How to Build a PHP cURL Spider to Scrape Zhihu User Data and Visualize It
Qunar Tech Salon
Qunar Tech Salon
Mar 23, 2016 · Operations

Using grep with Regular Expressions on Linux and Unix Systems

This guide explains how to use the GNU grep tool on Linux and Unix to perform powerful text searches with basic and extended regular expressions, covering pattern matching, character classes, wildcards, logical operators, quantifiers, output formatting, and differences between grep and egrep.

GrepLinuxregex
0 likes · 10 min read
Using grep with Regular Expressions on Linux and Unix Systems
ITPUB
ITPUB
Jan 29, 2016 · Information Security

Why Strict Password Rules Fail and How to Design Better Policies

The article critiques common mandatory password complexity rules, explains why they often reduce security and usability, and proposes simpler, more effective approaches such as longer minimum lengths, pattern restrictions, and using strength estimators like zxcvbn, illustrated with Laravel implementation examples.

Information SecurityLaravelPassword policy
0 likes · 5 min read
Why Strict Password Rules Fail and How to Design Better Policies
MaGe Linux Operations
MaGe Linux Operations
Jun 8, 2015 · Fundamentals

Mastering sed: Stream Editing Basics, Commands, and Real‑World Examples

This article introduces the Linux stream editor sed, explains its working principle, basic syntax, address ranges, and editing commands, and provides practical exercises demonstrating common text manipulation tasks such as printing even lines, commenting specific patterns, case conversion, and file modifications.

Linuxcommand-lineregex
0 likes · 10 min read
Mastering sed: Stream Editing Basics, Commands, and Real‑World Examples
Qunar Tech Salon
Qunar Tech Salon
Apr 30, 2015 · Databases

Parsing and Normalizing Space-Delimited Valid Periods in PostgreSQL

The article demonstrates how to split a space‑separated "validperiods" column into separate begin, end, and price fields in PostgreSQL using string_to_array, to_timestamp, regexp_replace, and unnest to transform the data into a readable tabular format.

data normalizationpostgresqlregex
0 likes · 8 min read
Parsing and Normalizing Space-Delimited Valid Periods in PostgreSQL