En cours

Search and replace php regular expression

I need a simple php code to do this.

I have a text file called [url removed, login to view] and in this file I have data.

example

Product_id; Size and id select; Value in select

1;Choisissez votre taille:select:1;4 à 6 ans - 7 à 9 ans - 11 à 14 ans

2;Choisissez votre taille:select:1;4 à 6 ans - 7 à 9 ans - 11 à 14 ans

and I want to show it that way.

Product_id; Size and id select; Value in select

1;Choisissez votre taille:select:1;4 à 6 ans

1;Choisissez votre taille:select:2;7 à 9 ans

1;Choisissez votre taille:select:3;11 à 14 ans

2;Choisissez votre taille:select:1;4 à 6 ans

2;Choisissez votre taille:select:2;7 à 9 ans

2;Choisissez votre taille:select:3;11 à 14 ans

the change is the ID 1 have now 3 line and ID 2 three line with different size

this is very simple with Regular expression the one who bid need to show me example.

I will choose someone today and dont bid more then 15$

Compétences : PHP

Voir plus : votre code, regular expression no, regular expression in c, regular expression example, regular expression code, regular expression c, regular expression a, regular expression 0, c regular expression example, php code test, Expression, php expression, php search replace, regular expression data, php code example, regular expression replace, php mysql search replace script, regular expression php, search replace, simple text replace, php regular, php regular expression, simple php search text file, php pdf search replace, search text file php

Concernant l'employeur :
( 7 commentaires ) Longueuil, Canada

N° du projet : #5794853

Décerné à :

gcarreonghotmail

Hello, I could have it you in a few minutes, I hope your confirmation to begin with, best regards, GCG

15 $ CAD en 0 jours
(2 Commentaires)
0.4

5 freelance ont fait une offre moyenne de 25 $ pour ce travail

rajeshsonisl

Hello, With 99% completion rate, 650+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page !!)... you can never go wro Plus

53 $ CAD en 1 jour
(466 Commentaires)
7.5
ahmed613

PHP expert.. pls award me the project and I will do it for you waiting for your answer and thanks, Ahmed.

30 $ CAD en 1 jour
(91 Commentaires)
5.3
sigmason

hi there lets we do it now... i hope to have nice workng with you , thanks for posting project, regards sigmason

15 $ CAD en 0 jours
(23 Commentaires)
4.0
GerardoMA

Hola, veo que es de Perú, puede decirme exactamente que es lo que necesita, desea crear un combo box en php ¿dinámico? o estático. Saludos Atte Gerardo

15 $ CAD en 3 jours
(3 Commentaires)
3.2
mobion

Hi I'm interested in this job. I'm a php developer and I have the code ready. Please contact me. Regards, Rafal

14 $ CAD en 1 jour
(3 Commentaires)
2.3
kabatza

No it is not regular expressions you have a separator ";" so you need to convert each line into an array and use array[0] as id.

30 $ CAD en 1 jour
(1 Commentaire)
1.5
AdroitTechnoSoft

Over 3+ years of professional working experience in Web Development. Responsive Design with HTML, CSS, jQuery, PHP, Wordpress, Bootstrap, YAML, and more! I am highly proficient in developing Wordpress Themes, and cr Plus

15 $ CAD en 1 jour
(0 Commentaires)
0.0