{"id":1969,"date":"2022-06-23T14:58:00","date_gmt":"2022-06-23T12:58:00","guid":{"rendered":"http:\/\/people.unil.ch\/jacquelinefrey\/?p=1969"},"modified":"2022-10-05T16:07:00","modified_gmt":"2022-10-05T14:07:00","slug":"word-rechercher-a-laide-de-caracteres-generiques","status":"publish","type":"post","link":"https:\/\/people.unil.ch\/jacquelinefrey\/2022\/06\/word-rechercher-a-laide-de-caracteres-generiques\/","title":{"rendered":"Word &#8211; Rechercher \u00e0 l&rsquo;aide de caract\u00e8res g\u00e9n\u00e9riques"},"content":{"rendered":"<h4><strong>Contexte<\/strong><\/h4>\n<p>Vous souhaitez effectuer des recherches un peu plus pouss\u00e9es que d&rsquo;habitude et vous s\u00e9chez un peu sur les possibilit\u00e9s d&rsquo;utilisation de caract\u00e8res g\u00e9n\u00e9riques dans la bo\u00eete de dialogue Rechercher (ou dans Rechercher et Remplacer).<\/p>\n<p>Pour que la recherche \u00e0 l&rsquo;aide de caract\u00e8res g\u00e9n\u00e9riques fonctionne, il est n\u00e9cessaire de cocher l&rsquo;option \u00ab\u00a0Utiliser les caract\u00e8res g\u00e9n\u00e9riques\u00a0\u00bb.<\/p>\n<p>Remarquez que la recherche \u00e0 l&rsquo;aide de codes sp\u00e9ciaux (\u00e0 ne pas confondre avec les caract\u00e8res g\u00e9n\u00e9riques) tels que ^s, ^t, ^p (respectivement espaces ins\u00e9cables, tabulations, marques de paragraphe) ne fonctionnera pas si l&rsquo;option \u00ab\u00a0Utiliser les caract\u00e8res g\u00e9n\u00e9riques\u00a0\u00bb est coch\u00e9e. Il convient donc d&rsquo;effectuer la recherche en plusieurs \u00e9tapes si on souhaite utiliser les caract\u00e8res g\u00e9n\u00e9riques et les codes sp\u00e9ciaux.<\/p>\n<h4><strong>Solution<\/strong><\/h4>\n<ul>\n<li>Allez dans le menu Edition &gt; Rechercher &gt; Recherche avanc\u00e9e et remplacement<\/li>\n<li>Cochez l&rsquo;option \u00ab\u00a0Utiliser les caract\u00e8res g\u00e9n\u00e9riques\u00a0\u00bb<\/li>\n<li>Faites les recherches suivantes en vous inspirant du tableau ci-dessous:<\/li>\n<\/ul>\n<table style=\"height: 1139px\" width=\"700\">\n<thead>\n<tr>\n<td width=\"152\"><strong>Pour rechercher<\/strong><\/td>\n<td width=\"39\"><strong>Tapez<\/strong><\/td>\n<td style=\"padding-left: 30px\" width=\"154\"><strong>Exemple<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td width=\"152\">N\u2019importe quel caract\u00e8re unique<\/td>\n<td width=\"39\">\n<p style=\"text-align: center\">?<\/p>\n<\/td>\n<td style=\"padding-left: 30px\" width=\"154\">s?t<br \/>\ntrouve <em>sot<\/em> et <em>set<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"152\">N\u2019importe quelle chaine de caract\u00e8res<\/td>\n<td width=\"39\">\n<p style=\"text-align: center\">*<\/p>\n<\/td>\n<td style=\"padding-left: 30px\" width=\"154\">s*t<br \/>\ntrouve <em>saut<\/em>, <em>salut<\/em>, <em>sot<\/em> et <em>set<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"152\">Le d\u00e9but d\u2019un mot<\/td>\n<td width=\"39\">\n<p style=\"text-align: center\">&lt;<\/p>\n<\/td>\n<td style=\"padding-left: 30px\" width=\"154\">&lt;fac<br \/>\ntrouve <em>facile<\/em>, <em>facult\u00e9<\/em>, <em>facebook<\/em> mais pas <em>Facebook<\/em> ni <em>interface<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"152\">La fin d\u2019un mot<\/td>\n<td width=\"39\">\n<p style=\"text-align: center\">&gt;<\/p>\n<\/td>\n<td style=\"padding-left: 30px\" width=\"154\">nuit&gt;<br \/>\ntrouve <em>nuit<\/em>, <em>minuit<\/em> et <em>Inuit<\/em> mais pas <em>nuit\u00e9e<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"152\">Un des caract\u00e8res sp\u00e9cifi\u00e9s<\/td>\n<td width=\"39\">\n<p style=\"text-align: center\">[ ]<\/p>\n<\/td>\n<td style=\"padding-left: 30px\" width=\"154\">t[ai]c<br \/>\ntrouve <em>tac<\/em> et <em>tic<\/em> mais aussi vertical, article et notice<\/td>\n<\/tr>\n<tr>\n<td width=\"152\">N\u2019importe quel caract\u00e8re compris dans la plage sp\u00e9cifi\u00e9e<\/td>\n<td width=\"39\">\n<p style=\"text-align: center\">[-]<\/p>\n<\/td>\n<td style=\"padding-left: 30px\" width=\"154\">tou[r-t]<br \/>\ntrouve <em>tour<\/em>, <em>tous<\/em> et <em>tout<\/em> mais pas <em>toux<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"152\">N\u2019importe quel caract\u00e8re, \u00e0 l\u2019exception de ceux compris dans la plage sp\u00e9cifi\u00e9e<\/td>\n<td style=\"text-align: center\" width=\"39\">[!x-z]<\/td>\n<td style=\"padding-left: 30px\" width=\"154\">t[!a-m]c<br \/>\ntrouve <em>toc<\/em> et <em>tuc<\/em> mais pas <em>tac<\/em> ou <em>tic<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"152\">Exactement n occurrences du caract\u00e8re pr\u00e9c\u00e9dent<\/td>\n<td width=\"39\">\n<p style=\"text-align: center\">{n}<\/p>\n<\/td>\n<td style=\"padding-left: 30px\" width=\"154\">ip{2}<br \/>\ntrouve <em>Philippe<\/em> et <em>Hippodrome<\/em> mais pas <em>Philip<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"152\">De n \u00e0 m occurrences du caract\u00e8re ou de l\u2019expression pr\u00e9c\u00e9dente<\/td>\n<td width=\"39\">\n<p style=\"text-align: center\">{n,m}<\/p>\n<\/td>\n<td style=\"padding-left: 30px\" width=\"154\">10{3,4}<br \/>\ntrouve <em>1000<\/em> et <em>100000<\/em> mais pas <em>10<\/em> et <em>100<\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Contexte Vous souhaitez effectuer des recherches un peu plus pouss\u00e9es que d&rsquo;habitude et vous s\u00e9chez un peu sur les possibilit\u00e9s d&rsquo;utilisation de caract\u00e8res g\u00e9n\u00e9riques dans la bo\u00eete de&hellip;<\/p>\n","protected":false},"author":83,"featured_media":3562,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"template-full-width-cover.php","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[2],"tags":[40],"class_list":{"0":"post-1969","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-word","8":"tag-recherche"},"_links":{"self":[{"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/posts\/1969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/users\/83"}],"replies":[{"embeddable":true,"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/comments?post=1969"}],"version-history":[{"count":0,"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/posts\/1969\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/media\/3562"}],"wp:attachment":[{"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/media?parent=1969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/categories?post=1969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.unil.ch\/jacquelinefrey\/wp-json\/wp\/v2\/tags?post=1969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}