I want to display all the words from my wordlist who start with a w
and are 9 letters long. Yesterday I learnt a bit more on how to use zgrep
so I came with :
zgrep '\(^w\)\(^.........$\)' a.gz
But this doesn't work and I think it's because I don't know how to do a AND
between the two conditions. I found that it should be (?=expr)(?=expr)
but I can't figure out how to build my command then
So how can I build my command using the (?=expr)
?
for example if I have a wordlist like this:
- Washington
- Sausage
- Walalalalalaaaa --> shouldn't match
- Wwwwwwwww --> should match