Sujet : Re: grep - remplacer une succession de pipes
De : om+news (at) *nospam* miakinen.net (Olivier Miakinen)
Groupes : fr.comp.lang.regexpDate : 03. Jan 2024, 19:12:27
Autres entêtes
Organisation : There's no cabale
Message-ID : <un482b$ant$1@cabale.usenet-fr.net>
References : 1 2 3
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.1
Le 03/01/2024 à 19:03, Olivier Miakinen a écrit :
grep -P '(?=.*a)(?=.*b)(?=.*c)(?=.*d)(?=.*e)(?=.*f).' \
/usr/share/dict/french
acidifiable
déchiffrable
déchiffrables
défrichable
différenciable
différenciables
fécondable
indéchiffrable
indéchiffrables
indéfrichable
indéfrichables
grep -P '(?=.*[aàâ])(?=.*b)(?=.*[cç])(?=.*d)(?=.*[eéèëê])(?=.*f).' \
/usr/share/dict/french
acidifiable
déchiffrable
déchiffrables
défrichable
différenciable
différenciables
fécondabilité
fécondable
indéchiffrable
indéchiffrables
indéfrichable
indéfrichables
(on y a gagné "fécondabilité")
-- Olivier Miakinen