Tagged articles
2 articles
Page 1 of 1
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.

DFANFAcapture groups
0 likes · 37 min read
Understanding Regular Expressions: Syntax, Engines, and Best Practices
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 11, 2017 · Frontend Development

Master Advanced JavaScript Regex: Lazy Quantifiers, Lookahead, and More

Explore advanced JavaScript regular expression techniques—including lazy quantifiers, non‑capturing groups, backreferences, lookaround assertions, and subtle meta‑character rules—to write more efficient and readable patterns, illustrated with practical examples such as inserting commas into large numbers.

JavaScriptlazy quantifierslookaround
0 likes · 4 min read
Master Advanced JavaScript Regex: Lazy Quantifiers, Lookahead, and More