exrex icon indicating copy to clipboard operation
exrex copied to clipboard

Irregular methods on regular expressions

Results 26 exrex issues
Sort by recently updated
recently updated
newest added

E.g. `[[:alpha:]]` See this part of [POSIX regex spec](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03_05).

Is there a possibility of a portability to Golang?

range like [0-80] will only match 1 digit at a time: `exrex "[0-80]"` 0 1 2 3 4 5 6 7 8 0 i think is a good feature if...

``` $ exrex -sv '^(prefix/1|prefix/23)' [(AT, AT_BEGINNING), (SUBPATTERN, (1, 0, 0, [(LITERAL, 112), (LITERAL, 114), (LITERAL, 101), (LITERAL, 102), (LITERAL, 105), (LITERAL, 120), (LITERAL, 47), (BRANCH, (None, [[(LITERAL, 49)], [(LITERAL,...

count() inaccurately returns finite integer when regex has infinite matches. Solution would be to provide is_infinite() property/method. ``` is_infinite('[ab]+') => True is_infinite('[ab]') => False ``` Thanks.

We've been using `exrex` for [NL postal codes](https://github.com/artamonovkirill/exrex/blob/test/lookahead/tests.py#L67) generation using the following regex: `^(?i)[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$`. Looks like lookahead assertions are not being applied correctly: https://github.com/artamonovkirill/exrex/blob/test/lookahead/tests.py#L67 (after I [doubled the amount...

bug

first backreference \1 will not be matched if there is more than one ( ) and followed by ? or {0,1} like in below example: `` exrex.py "(19[0-9][0-9]|20[0-9][0-9]|[0-9][0-9]){0,1}@?(alae|yassine?)@?\1@?" `` output:...

bug

``` In [8]: import exrex In [9]: exrex.getone('\w+') Out[9]: '' ```

bug

`exrex "[\w]{5,10}"` on windows

bug