From 9447ba8c4aff985f9238b3f4e138afd4526799b0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 13 Sep 2024 13:34:04 -0400 Subject: Split pattern code into its own file --- docs/text.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docs/text.md') diff --git a/docs/text.md b/docs/text.md index 8a9f641e..18960b02 100644 --- a/docs/text.md +++ b/docs/text.md @@ -255,9 +255,11 @@ finding the value because the two texts are equivalent under normalization. # Patterns As an alternative to full regular expressions, Tomo provides a limited string -matching pattern syntax that is intended to solve 80% of use cases in 2% of the -code size (PCRE's codebase is roughly 150k lines of code, and Tomo's entire -Text codebase is around 1.8K lines of code). +matching pattern syntax that is intended to solve 80% of use cases in under 1% +of the code size (PCRE's codebase is roughly 150k lines of code, and Tomo's +pattern matching code is a bit under 1k lines of code). Tomo's pattern matching +syntax is highly readable and works well for matching literal text without +getting [leaning toothpick syndrome](https://en.wikipedia.org/wiki/Leaning_toothpick_syndrome). For more advanced use cases, consider linking against a C library for regular expressions or pattern matching. -- cgit v1.2.3