<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Donc en résumé, pour ignorer la casse dans une expression rationnelle dans Overpass, on utilise la syntaxe had hoc :<br></div><div><ul><li>[‘clé’~’expression’,i]</li><li><has-kv k="clé" regv="expression" case="ignore" /></li></ul></div></div></blockquote><div>Je teste mes regex avec ce <b><a href="http://regex101.com/#python" target="_blank">site </a> en mode python. </b>c'est une tuerie pour tester les chaines. tu peux y ajouter le modifier i dans la 2eme textbox qui suit la chaine regex</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><blockquote type="cite"><div><div dir="ltr"><div>La requête renvoie toute les noms commençant par pharmacie et (sans contrainte de case) et dispensing"=« no »</div></div></div></blockquote>Il y a aussi les noms se terminants par pharmacie : « Grande pharmacie »</div></div></blockquote><div><br></div><div>Ah oui en effet</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>Une autre façon de faire, c’est de prendre les objets le nom contenant « pharmacie » puis d’exclure ceux qui contiennent « parapharmacie » (en attendant que les expressions Perl soient utilisables)</div><div><font face="Courier New">node["dispensing"="no"]["name"~"(pharmacie)(.*$)",i]<font color="#b51a00">["name"!~"(parapharmacie)(.*$)",i]</font>({{bbox}});</font></div></div></blockquote><div><br></div><div>Oui c'est le seul moyen je pense car overpass n'accepte pas l'assertion (<span style="font-size:13px;color:rgb(0,0,0);font-family:sans-serif;line-height:18.2000007629395px">negative look-ahead (?!)</span><span style="font-size:13px;color:rgb(0,0,0);font-family:sans-serif;line-height:18.2000007629395px"> )</span></div><div><i>"name"~"(<font color="#000000" face="sans-serif"><span style="line-height:18.2000007629395px">(pharmacie)(?<!parapharmacie)",i</span></font></i></div><div><font color="#000000" face="sans-serif"><span style="line-height:18.2000007629395px">ca fonctionne pas cela! </span></font><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span><blockquote type="cite"><div><div dir="ltr"><div>  // query part for: “dispensing=no” and name"~"(^pharmacie)(.*$)"<font color="#ff0000"><b>,i</b></font></div><div>  node["dispensing"="no"]["name"~"(^pharmacie)(.*$)"<font color="#ff0000"><b>,i</b></font>]({{bbox}});</div><div>  node["dispensing"="no"]["name"~"(^pharmacie)(.*$)"<b><font color="#ff0000">,i</font></b>]({{bbox}});</div><div>  node["dispensing"="no"]["name"~"(^pharmacie)(.*$)"<b><font color="#ff0000">,i</font></b>]({{bbox}});</div></div></div></blockquote></span>Tu recherches 3 fois la même chose ? ;-)</div></div></blockquote><div><br></div><div>Euh je crois que j'ai oublié de changer en <b>way </b>et <b>relation </b>suite à ma copie</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div><div>ça donne ça pour un export vers JOSM : <a href="http://overpass-turbo.eu/s/5II" target="_blank">http://overpass-turbo.eu/s/5II</a></div><div><br></div></div></div></blockquote><div>Oui sauf que j'avais en effet fait ça on pensant avoir toujours le mot pharmacie au début</div><div><font color="#ff0000"><span style="font-family:'Courier New'">["dispensing"="no"]["name"</span><span style="font-family:'Courier New'">~"pharmacie",i]</span><font style="font-family:'Courier New'">["name"!~"parapharmacie",i]</font></font><br></div><div class="gmail_quote"><br></div>C'est suffisant<br> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div></div></div><div>—</div><span><font color="#888888"><div>Yves</div></font></span></div><br>_______________________________________________<br>
Talk-fr mailing list<br>
<a href="mailto:Talk-fr@openstreetmap.org" target="_blank">Talk-fr@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-fr" target="_blank">https://lists.openstreetmap.org/listinfo/talk-fr</a><br>
<br></blockquote></div><br>
</div></div>