informatique:regexp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatique:regexp [2016/01/11 09:38] – valider une adresse email pteu | informatique:regexp [2019/09/09 08:42] – [exclure un motif] pteu | ||
---|---|---|---|
Line 58: | Line 58: | ||
=====Exemples===== | =====Exemples===== | ||
+ | |||
+ | * matcher chaque ligne qui ne contient pas le MOTIF (exclure le motif) | ||
+ | <code bash> | ||
+ | ^((? | ||
+ | |||
+ | # alt : ne pas matcher les lignes qui commencent par MOTIF : | ||
+ | ^(? | ||
+ | </ | ||
+ | src stackoverflow : [[https:// | ||
* Valider une URL : | * Valider une URL : | ||
Line 74: | Line 83: | ||
</ | </ | ||
- | * valider une adresse email selon le RFC 5322 (source : [https:// | + | * valider une adresse email selon le RFC 5322 (source : [[https:// |
<code bash> | <code bash> | ||
/(?(DEFINE) | /(?(DEFINE) |
informatique/regexp.txt · Last modified: 2020/05/24 12:02 by pteu