in reply to regex help needed
Of course, if you know you only need to look at DONE at the end, you can use:/(?:^.{0,4}|[^e].{4}|[^c].{3}|[^h].{2}|[^o].|[^ ])done/is /(.....)done(??{$1 eq "echo " ? "(*FAIL)" : ""})|^.{0,4}done/is # Repl +ace (*FAIL) with (?!) pre-5.10
!/echo done$/i && /done$/i
|
|---|