Notepad++ RegEx : Remplacement conditionnel
Bonjour à tous,
J'ai besoin de l'avis d'experte sur mon problème
je veux
Ajouter après integer le mot unsigned
Ajouter AVANT la virgule le texte AUTO INCREMENT
Citation:
idlong toto integer not null,
logklon moyoto varchar(20) not null,
idpoio toto integer not null,
logklon moyoto varchar(20) not null,
Si je saisie dans recherche:
(^id.+)+(integer)+(.*)
Dans remplacer
\1 \2 unsigned\3
j'obtiens
Citation:
dlong toto integer unsigned not null,
logklon moyoto varchar(20) not null,
idpoio toto integer unsigned not null,
logklon moyoto varchar(20) not null,
1er problème:
Par contre l'espace avec le mot précédent integer est répété
2ème problème:
Je ne sas pas comment faire pour ajouter auto increment en fin de ligne avant la virgule.
J'avais tenté dans
chercher: (^id.*)+(integer)+(.*)+([,])
Remplacer : \1 \2 unsigned\3 auto\4
Mais j'obtiens ça
Citation:
idlong toto integer unsigned auto
logklon moyoto varchar(20) not null,
idpoio toto integer unsigned auto
logklon moyoto varchar(20) not null
Adieu la joie
Merci pour votre aide