User Tools

Site Tools


informatique:regexp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
informatique:regexp [2016/01/11 09:38] – valider une adresse email pteuinformatique:regexp [2019/09/09 08:34] – [exclure un motif] pteu
Line 58: Line 58:
  
 =====Exemples===== =====Exemples=====
 +
 +  * matcher tout sauf MOTIF (exclure le motif)
 +<code bash>
 +^((?!MOTIF).)*$
 +</code>
 +src stackoverflow : [[https://stackoverflow.com/questions/406230/regular-expression-to-match-a-line-that-doesnt-contain-a-word|Regular expression to match a line that doesn't contain a word]]
  
   * Valider une URL :   * Valider une URL :
Line 74: Line 80:
 </code> </code>
  
-  * valider une adresse email selon le RFC 5322 (source : [https://regex101.com/r/gJ7pU0/1|regex101])+  * valider une adresse email selon le RFC 5322 (source : [[https://regex101.com/r/gJ7pU0/1|regex101]])
 <code bash> <code bash>
 /(?(DEFINE) /(?(DEFINE)
informatique/regexp.txt · Last modified: 2020/05/24 12:02 by pteu