hedhyw / rex

Flexible regular expressions constructor for Golang.
MIT License
196 stars 5 forks source link

question: helper for negative look-ahead. How? #18

Closed hedhyw closed 1 year ago

hedhyw commented 2 years ago

https://stackoverflow.com/questions/26771592/negative-look-ahead-in-go-regular-expressions https://betterprogramming.pub/demystifying-look-ahead-and-look-behind-in-regex-4a604f99fb8c

Generate composite?

NotText("hello")
// (?:[^h]|h[^e]|hel[^l]|hell[^o])