awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
rust-lang avatar

rust-lang/regex

0
View on GitHub↗
3,978 stars·513 forks·Rust·Apache-2.0·11 viewsdocs.rs/regex↗

Regex

This is a Rust regular expression library that provides a finite automata engine for searching and matching text patterns. It functions as a Unicode-compliant text scanner designed to guarantee linear time execution on all inputs to prevent catastrophic backtracking.

The engine supports both single and multi-pattern search capabilities, allowing it to scan a piece of text for multiple regular expressions simultaneously. It operates on both strings and raw byte slices to identify matching text segments.

The library covers text parsing, string validation, and pattern searching. It includes capabilities for regular expression syntax parsing and provides options for tuning engine performance to balance binary size, compilation time, and runtime execution speed.

Features

  • Finite Automata Regex Engines - Provides a finite automata-based regular expression engine that guarantees linear time execution on all inputs.
  • Syntax Parsing & Analysis - The engine deconstructs a regular expression into a syntax tree and intermediate representation to perform static analysis on the pattern.
  • Text Pattern Search - Enables high-performance searching for character or byte sequences within large strings.
  • Regular Expression Engines - Implements regular expression matching and search using finite automata theory.
  • NFA-Based Matching - Employs nondeterministic finite automata to guarantee linear time complexity and prevent catastrophic backtracking.
  • Regular Expression Libraries - Ships a comprehensive regular expression library for Rust utilizing a finite automata engine.
  • Unicode Text Handling - Supports full Unicode character processing and efficient scanning of multi-byte encoded strings.
  • High-Performance Text Processing - Provides high-performance text extraction with guaranteed linear time complexity to prevent performance crashes.
  • Lazy State Compilation - Builds the deterministic state machine incrementally during execution and caches results to balance memory use and speed.
  • Aho-Corasick Implementations - Implements a specialized Aho-Corasick automaton to efficiently locate multiple patterns in a single text pass.
  • Multi-Pattern Matching Algorithms - Implements a system that can scan text for multiple regular expressions simultaneously in a single pass.
  • Byte-Slice Matching - Provides the capability to search raw byte slices without the performance cost of UTF-8 validation.
  • String Pattern Validators - Allows verifying that text follows complex rules and formats using arbitrary regular expression patterns.

Star history

Star history chart for rust-lang/regexStar history chart for rust-lang/regex

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does rust-lang/regex do?

This is a Rust regular expression library that provides a finite automata engine for searching and matching text patterns. It functions as a Unicode-compliant text scanner designed to guarantee linear time execution on all inputs to prevent catastrophic backtracking.

What are the main features of rust-lang/regex?

The main features of rust-lang/regex are: Finite Automata Regex Engines, Syntax Parsing & Analysis, Text Pattern Search, Regular Expression Engines, NFA-Based Matching, Regular Expression Libraries, Unicode Text Handling, High-Performance Text Processing.

What are some open-source alternatives to rust-lang/regex?

Open-source alternatives to rust-lang/regex include: google/re2 — re2 is a C++ regular expression library designed for high-performance text processing. It is a non-backtracking regex… ggreer/the_silver_searcher — The Silver Searcher is a high-performance text search utility and regex code search tool designed to locate strings… crazyguitar/pysheeet — pysheeet is a technical reference library providing a curated collection of code snippets and implementation patterns… francisrstokes/super-expressive — Super-expressive is a zero-dependency JavaScript library and domain-specific language used to construct complex… bloopai/bloop — Bloop is an AI code analysis tool and semantic search engine designed for understanding and querying large-scale… google/codesearch — Codesearch is an indexed code search engine and large-scale source indexer designed to execute regular expressions…

Open-source alternatives to Regex

Similar open-source projects, ranked by how many features they share with Regex.
  • google/re2google avatar

    google/re2

    9,699View on GitHub↗

    re2 is a C++ regular expression library designed for high-performance text processing. It is a non-backtracking regex engine that provides linear-time pattern matching, ensuring that execution time remains proportional to the size of the input string regardless of the pattern used. The library supports UTF-8 and Latin-1 text encodings for searching and extracting substrings. It includes capabilities for multi-pattern optimization, allowing multiple regular expressions to be combined into a single representation to scan text for several patterns in one pass. The project covers core regex oper

    C++
    View on GitHub↗9,699
  • ggreer/the_silver_searcherggreer avatar

    ggreer/the_silver_searcher

    27,072View on GitHub↗

    The Silver Searcher is a high-performance text search utility and regex code search tool designed to locate strings and regular expressions within plain text and source code. It functions as a codebase pattern matcher that provides highlighted results with surrounding line context and respects standard ignore files. The utility includes specialized capabilities for searching inside zlib and lzma compressed archives. It implements high-throughput processing via parallel-threaded file scanning and just-in-time regular expression compilation. The tool's search and indexing surface covers output

    Cagccommand-line-tool
    View on GitHub↗27,072
  • crazyguitar/pysheeetcrazyguitar avatar

    crazyguitar/pysheeet

    8,150View on GitHub↗

    pysheeet is a technical reference library providing a curated collection of code snippets and implementation patterns for advanced Python development, system integration, and high-performance computing. It serves as a comprehensive guide for implementing low-level network programming, native C extensions, and asynchronous and concurrent programming. The project provides specialized frameworks for the development and deployment of large language models, including tools for distributed GPU inference and high-performance serving. It also includes detailed patterns for high-performance computing

    Python
    View on GitHub↗8,150
  • bloopai/bloopBloopAI avatar

    BloopAI/bloop

    9,510View on GitHub↗

    Bloop is an AI code analysis tool and semantic search engine designed for understanding and querying large-scale codebases. It utilizes a high-performance indexing system written in Rust to enable fast symbol and text retrieval across multiple programming languages. The project differentiates itself by using on-device embeddings for semantic code search, allowing users to locate logic based on meaning and intent rather than exact keywords. It combines a language model with a retrieval-augmented generation approach to provide a natural language interface for conversational querying and the gen

    Rust
    View on GitHub↗9,510
  • See all 30 alternatives to Regex→