Re:Wordle and grep
by sizzzzlerz on Saturday April 16, 2022 @03:03PM
(#31055108)
Can egrep do lookaheads or behinds? I find it necessary to use positive lookaheads to verify the test words include all the letters marked present but in the wrong location.
[ Parent
| on HN ]
I was also curious about this as I use grep -P (for PCRE regexes) if I need to use them. Looking at the manual, lookaheads and lookbehinds don't seem to be supported by regular gnu grep or grep -E, so you do need to use grep -P for them.