Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Non-English Discussions > Forum Français > Software

Notices

Reply
 
Thread Tools Search this Thread
Old 04-06-2010, 09:29 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Smile Expression régulière: à vot' bon cœur

Bonjour

Je m'efforce de purger un fichier xhtml.

Je voudrais chercher les balises <span.sgc-5>*</span> et les remplacer par <em>*</em> sans toucher à ce qu'il y a entre les balises.

* représente ici n'importe quelle phrase de longueur variable que l'on peut trouver en italiques dans un texte. Je ne sais pas comment le dire en utilisant une expression régulière. J'ai essayé (\d+), [\w'-] au petit bonheur et sans succès..

Je ne peux pas procéder successivement (balises entrantes puis balises fermantes) parce que j'ai d'autres balises entrantes avec un numéro sgc autre que 5 et un nombre incalculable de balises fermantes </span> parmi les quelles je serais ensuite incapable de trier.

J'espère m'être fait comprendre.

Last edited by roger64; 04-06-2010 at 09:34 AM.
roger64 is offline   Reply With Quote
Old 04-06-2010, 09:44 AM   #2
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
héhé, les expressions régulières ! des heures entières d'amusement. je suis loin d'être experte mais je commence à y tâter aussi, peut-être que les conseils que j'ai eus peuvent te servir aussi. regarde déjà ce fil pour voir si tu y trouves qqchose d'utile, sinon on m'a conseillé ces sites d'info et pour tester :
http://www.regular-expressions.info/ et http://gskinner.com/RegExr/

il y a aussi un utilitaire (windows) qui permet apparemment de tester ses expressions : RegEx Coach mais je n'ai pas encore regardé comment il marche.

ce que je peux te dire c'est que l'expression pour trouver le texte à l'intérieur de tes balises doit être enfermée dans des parenthèses () et dans le champ de remplacement tu mettras \1 à la place pour indiquer qu'il ne faut pas toucher à ça. je sais, c'est pas bien lourd.

désolée de ne pouvoir t'être plus concrètement utile, mais peut-être que nous avons un expert qui traîne dans les parages, sinon, Valloric connaît très bien et pourra te sortir l'expression qu'il te faut sans problème, si tu postes dans le forum de Sigil.
zelda_pinwheel is offline   Reply With Quote
Advert
Old 04-06-2010, 09:52 AM   #3
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
tiens est-ce que tu as essayé un truc comme ceci :

Code:
<span.sgc-5>([\w\s]*\w)</span>
à moins que je me plante lamentablement (fort possible, je précise...) ça devrait trouver tout span.sgc-5 avec à l'intérieur 0, un ou plusieurs mots suivi d'un espace et finissant par un mot.

Last edited by zelda_pinwheel; 04-06-2010 at 09:58 AM.
zelda_pinwheel is offline   Reply With Quote
Old 04-06-2010, 12:41 PM   #4
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Smile

Zelda, merci beaucoup.

Je vais l'encadrer soigneusement parce que ça fonctionne. Et \1 je l'avais vu sur un post du forum mais je n'avais pas compris à quoi ça pouvait bien servir.

Grâce à toi j'ai fait un grand pas vers la sortie de mon epub made in OpenOffice et Sigil.
roger64 is offline   Reply With Quote
Old 04-06-2010, 03:43 PM   #5
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,332
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
Bon, Zelda est plus douée avec les expressions régulières que l'informaticienne de service
EowynCarter is offline   Reply With Quote
Advert
Old 04-07-2010, 02:46 PM   #6
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
ouais, ça a marché !!! j'y croyais pas des masses à vrai dire, je vais donc le noter pour mon usage aussi. ravie d'avoir pu t'aider, et j'ai appris quelque chose par la même occasion.
zelda_pinwheel is offline   Reply With Quote
Old 04-07-2010, 03:09 PM   #7
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,332
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
Nan mais regardez moi ça, même les modos font du double post maintenant
EowynCarter is offline   Reply With Quote
Old 04-07-2010, 03:23 PM   #8
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
Quote:
Originally Posted by EowynCarter View Post
Nan mais regardez moi ça, même les modos font du double post maintenant
j'ai des galères de connexion en ce moment (grbmblblbmbl ). mais bon comme je suis modo je peux aussi virer le doublon.
zelda_pinwheel is offline   Reply With Quote
Old 04-07-2010, 03:31 PM   #9
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,332
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
Quote:
Originally Posted by zelda_pinwheel View Post
j'ai des galères de connexion en ce moment (grbmblblbmbl ). mais bon comme je suis modo je peux aussi virer le doublon.

Oui c'est vrai qu'on peut pas supprimer ces propres post ici. Un peut dommage parfois. (dans ces cas la justement).
Il lui arrive quoi a ta connexion ?
EowynCarter is offline   Reply With Quote
Old 04-07-2010, 03:43 PM   #10
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
Quote:
Originally Posted by EowynCarter View Post

Oui c'est vrai qu'on peut pas supprimer ces propres post ici. Un peut dommage parfois. (dans ces cas la justement).
voui. mais en cas de besoin, si tu me demandes gentiment, on pourra sans doute s'arranger.

Quote:
Il lui arrive quoi a ta connexion ?
il lui arrive qu'elle elle fait la grève, apparemment. hier soir elle a coupé et elle est pas revenue depuis. j'ai rebooté la freebox, vérifié les câbles, que dalle. tout à l'heure j'ai chopé la freebox d'une voisine pour faire le teste, ben ça coince toujours sur le chenillard lent, ce qui signifie que c'est la ligne (bizarrement, ma ligne FT, qui sort de la même prise, fonctionne sans problème, ce que j'ai pu constater lorsque je m'en suis servie pour appeler l'assistance technique de Free avec).

en plus quand j'ai appelé Free la première fois je suis tombée sur la pétasse de service qui ne faisait que me débiter les mêmes trois répliques quelle que soit la question que je posais et prenait un malin plaisir à m'aider le moins possible. quand j'ai rappelé plus tard j'ai eu quelqu'un d'un peu plus serviable qui m'a suggéré, puisque j'avais une voisine chez free, de voir si je pouvais pas me brancher sur son wifi, donc j'ai été m'acheter une clé wifi tout à l'heure et c'est comme ça que je suis connectée enfin là (c'est mieux que rien mais boudi, ça rame), parce que l'autre pétasse n'a pas pu me proposer mieux qu'un rdv technicien vendredi après-midi, et que 3 jours sans connexion ça va pas le faire DU TOUT, j'ai du boulot, moi, merde.

d'ailleurs si vous pourriez tous penser très fort à ma connexion en espérant la motiver à revenir, ça serait gentil à vous.
zelda_pinwheel is offline   Reply With Quote
Old 04-07-2010, 04:01 PM   #11
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,332
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
Quote:
il lui arrive qu'elle elle fait la grève, apparemment. hier soir elle a coupé et elle est pas revenue depuis. j'ai rebooté la freebox, vérifié les câbles, que dalle. tout à l'heure j'ai chopé la freebox d'une voisine pour faire le teste, ben ça coince toujours sur le chenillard lent, ce qui signifie que c'est la ligne (bizarrement, ma ligne FT, qui sort de la même prise, fonctionne sans problème,
Oui, j'avait ça a Limoges. Ligne adsl non active... râle après free régulièrement, avec un peut de chance.

Et puis freewi-fi powwaaa.
EowynCarter is offline   Reply With Quote
Old 04-07-2010, 07:32 PM   #12
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
Quote:
Originally Posted by EowynCarter View Post
Oui, j'avait ça a Limoges. Ligne adsl non active... râle après free régulièrement, avec un peut de chance.
c'est trop con, en plus ça fait des années que je suis chez free sans problème, mais alors là...

Quote:
Et puis freewi-fi powwaaa.
comme tu dis.
zelda_pinwheel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sony à bon prix. EricGagne Sony Reader 1 08-10-2010 04:53 AM
help with regex expression daesdaemar Workshop 4 02-19-2010 07:38 AM
Short Fiction Poe, Edgar Allan: Bon-Bon german v2 7 feb 2009 netseeker ePub Books 0 02-07-2009 12:34 PM
Short Fiction Poe, Edgar Allan: Bon-Bon german v2 7 feb 2009 netseeker Kindle Books 0 02-07-2009 12:33 PM
Short Fiction Poe, Edgar Allan: Bon-Bon german v2 7 feb 2009 netseeker BBeB/LRF Books 0 02-07-2009 12:32 PM


All times are GMT -4. The time now is 04:44 PM.


MobileRead.com is a privately owned, operated and funded community.