fork download
  1. #!/bin/bash
  2. s="hello
  3. cabby
  4. pabba
  5. lokka
  6. lappa
  7. coool
  8. apple
  9. laala"
  10.  
  11. grep -vP '^(?:(.)\1*(?:(?!\1)(.)(?:\1|\2)*(?:(?!\1|\2|3)(.)(?:\1|\2|\3)*)?)?)?$' <<< "$s"
Success #stdin #stdout 0s 4352KB
stdin
Standard input is empty
stdout
hello
cabby
lokka
apple