Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Pascal
  3. TRegExpr

TRegExpr

MITPascal1.182

A pure Object Pascal regular expressions engine for Delphi and Free Pascal.

Visit WebsiteGitHubGitHub
192 stars68 forks0 contributors

What is TRegExpr?

TRegExpr is a regular expressions library implemented entirely in Object Pascal for use with Delphi and Free Pascal compilers. It provides native regex capabilities without requiring external dependencies, solving the need for pattern matching and text processing within the Pascal ecosystem.

Target Audience

Pascal developers using Delphi or Free Pascal who need regular expression functionality in their applications without relying on external libraries.

Value Proposition

Developers choose TRegExpr because it offers a pure Pascal implementation that integrates seamlessly with their existing codebase, is included in the official Free Pascal distribution, and provides comprehensive multi-language documentation.

Overview

Regular expressions (regex), pascal.

Use Cases

Best For

  • Adding regex pattern matching to Delphi applications
  • Text processing in Free Pascal projects
  • Developing cross-platform Pascal applications with regex capabilities
  • Educational purposes for learning regex in Pascal
  • Maintaining legacy Pascal codebases that require regex functionality
  • Building tools that process text patterns in Pascal environments

Not Ideal For

  • Projects requiring full Perl-compatible regex syntax with advanced features like atomic groups
  • High-throughput text processing applications where performance is critical compared to C-based engines
  • Developers working outside the Delphi or Free Pascal ecosystems needing cross-language regex support

Pros & Cons

Pros

Pure Pascal Implementation

Implemented entirely in Object Pascal, eliminating external dependencies and simplifying integration with Delphi and Free Pascal projects, as stated in the README.

Cross-Compiler Compatibility

Works with both Delphi and Free Pascal compilers, ensuring broad usability across different Pascal environments, highlighted in the key features.

Comprehensive Multi-Language Documentation

Offers documentation in six languages, making it accessible to a global developer community, as noted in the README with a dedicated website.

Official Free Pascal Inclusion

Included as part of the official Free Pascal project, providing reliability and easy access for Free Pascal users, mentioned in the README links.

Cons

Limited Regex Feature Set

May not support all modern regex constructs found in engines like PCRE or ECMAScript, as it's tailored for Pascal and the README doesn't specify advanced features.

Potential Performance Overheads

Being a pure Pascal implementation, it might not match the performance of optimized C-based regex libraries in intensive applications, a trade-off for native integration.

Ecosystem Dependency

Tied to the Pascal ecosystem, limiting its use outside Delphi and Free Pascal, and may have fewer updates or community contributions compared to mainstream regex libraries.

Frequently Asked Questions

Quick Stats

Stars192
Forks68
Contributors0
Open Issues16
Last commit5 days ago
CreatedSince 2012

Tags

#free-pascal#regex#regex-engine#object-pascal#pascal#pattern-matching#text-processing#delphi#freepascal#pascal-library#regular-expressions

Built With

F
Free Pascal
D
Delphi
O
Object Pascal

Links & Resources

Website

Included in

Pascal2.0k
Auto-fetched 1 day ago

Related Projects

LAMWLAMW

LAMW: Lazarus Android Module Wizard: Form Designer and Components development model!

Stars293
Forks93
Last commit18 days ago
Markdown Processor for PascalMarkdown Processor for Pascal

delphi-markdown is a Pascal library that processes Markdown text and converts it to HTML. It provides native Markdown processing capabilities for Delphi and Free Pascal (FPC) applications, enabling developers to incorporate rich text formatting without relying on external dependencies. ## Key Features - **Multiple Dialect Support** — Processes Daring Fireball Markdown, CommonMark (partial), and GitHub Flavored Markdown - **Unicode Compatibility** — Works with any Unicode version of Delphi and cross-platform FPC - **Safety Controls** — Optional unsafe mode for active content with security warnings - **Comprehensive Testing** — Includes unit tests and CommonMark specification tests - **Cross-Platform** — Tested on Windows, Linux, and macOS with FPC ## Philosophy The library focuses on providing reliable, well-tested Markdown processing for Pascal developers while maintaining clear safety boundaries around potentially dangerous content.

Stars229
Forks69
Last commit1 year ago
GpDelphiUnitsGpDelphiUnits

A collection of my open sourced Delphi units

Stars187
Forks63
Last commit3 months ago
DelphiPatternsDelphiPatterns

Complete set of all the GoF design patterns implemented in Delphi language

Stars181
Forks84
Last commit8 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub