tre
tre copied to clipboard
The approximate regex matching library and agrep command line tool.
Program: tre-agrep The man page leads me to believe that -d PATTERN and --delimiter=PATTERN are just the short form and long form for the same underlying option, so, allowing for...
This is in relation to code I am trying to fix on C-ICAP Classify (LGPL, located at https://github.com/treveradams/C-ICAP-Classify/). I do not speak Bulgarian and many other languages I use with...
Hello. I need to do a partial regex checks (from the beginning of a pattern). For example, If I have - a pattern "^a/b/c/.*/d" and a string "a/b", then it's...
Hi, we're using the tre library and python bindings on a project. We noticed that tre has problems with large literal patterns in some cases: ``` import re import unittest...
This is using the library included in R 3.0.2: ``` R text
This is something I experienced using R, which includes a copy of TRE which dates back to 2009. Sorry if it has been fixed since then. The idea is that...
I want to match all non-tab characters at the start, or end, of a string. For example, I have the following tab-delimited string where the two columns also contain a...
Source code is ``` assert(lit->code_max >= 1 || lit->code_max code_max >= 1 && lit->code_max
Apparently the R programs includes the tre library with some local modifications in it - particularly the addition of some functions: tre_regnexecb tre_regexecb tre_regncompb tre_regaexecb tre_regcompb that apparently operate on...
This expression succeeds when it should fail: ``` ret = tre_regcomp(&trx, "^(?:(?:(?:(?:(?:[0-9]){1,4}):){0,4})(?:(?:[0-9]){1,4}))?::$", REG_EXTENDED | REG_NOSUB); test = "1:2:3:4:5:6::"; ret = tre_regexec(&trx, test, 0, NULL, 0); ```