Tag

lookaround

1 views collected around this technical thread.

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 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.

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