nim-regex icon indicating copy to clipboard operation
nim-regex copied to clipboard

Pure Nim regex engine. Guarantees linear time matching

Results 23 nim-regex issues
Sort by recently updated
recently updated
newest added

see https://www.regular-expressions.info/branchreset.html

For the regex section we have decided to base the introducing explanations on your regex module instead of the re and nre modules of Nim's standard library. Please let us...

API spec: ```nim func re(s: string): Regex func re(s: static string): static[Regex] func group(m: RegexMatch; i: int): Slice[int] func group(m: RegexMatch; s: string): Slice[int] func groupCount(m: RegexMatch): int func groupNames(m:...

## example 1 nim c -d:danger tests/tests.nim 51 seconds tests/tests 0.04 seconds ## notes I'm not sure whether it's due to VM code executing tests at CT or whether it's...

Add support to match on binary input. The `-u` flag is not enough because the input is iterated as Runes. The Regex object should contain a `binary_mode` flag so the...

Capturing all group repetitions (even if there are no repetitions) makes the matching take unbounded space. I think it'd be better to capture only the last group repetition, as that's...

ex: ```nim match "1-2 c abc", rex"(?P\d+)-(?P\d+) (?P\w): (?P\w*)": doAssert a == "1" doAssert b == "2" doAssert c == "c" doAssert pwd == "abc" ```

feature

following https://github.com/nitely/nim-regex/pull/67, `^` now refers to position 0 (instead of start) even if start > 0. We need a way to allow matching at `position = start` (ie emulate the...

postponed
upstream

``` [david@eb ~]$ nimble install regex@#head ``` ``` Downloading https://github.com/nitely/nim-regex using git Tip: 1 messages have been suppressed, use --verbose to show them. Error: Could not read package info file...

upstream

now that https://github.com/nitely/nim-regex/pull/86 was merged (yay!) I think docs should be removed and generated via github actions CI on each push to master; eg you can do same as I...