exrex icon indicating copy to clipboard operation
exrex copied to clipboard

Lookahead support

Open artamonovkirill opened this issue 3 years ago • 0 comments

We've been using exrex for NL postal codes 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 of tests, it fails almost 100%).

artamonovkirill avatar Apr 26 '21 19:04 artamonovkirill