Em Andamento

Parser in JavaScript

I need a java script that modifies a part of address data. I.E. the address is Heckenrosenweg 31-41,58708 Menden (Sauerland) There are always two parts divided by the ',' The first part is the street name and the house no. (in Germany the house numbers are behind the street name) the second part ist the postal code and the city name. The second part should never be changed, only the first part. Here, in this example there are all together 11 different house adresses put together. Heckenrosenweg 31 to Heckenrosenweg 41. The script should no do this: alert ("Heckenrosenweg 30,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 31,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 32,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 33,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 34,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 35,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 36,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 37,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 38,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 39,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 40,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 41,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 42,58708 Menden (Sauerland)"); So, it should make an alert for every single address added one number less (30) and one number more (42). So, this is what I need! But there are some exceptions. They are described in another field below because this form does not accept more than 2500 keys. ;-)

## Deliverables

Note: Not sure if this text is formated correctly, so I attached it as a txt file here) ------------------------------------ I need a java script that modifies a part of address data. I.E. the address is Heckenrosenweg 31-41,58708 Menden (Sauerland) There are always two parts divided by the ',' The first part is the street name and the house no. (in Germany the house numbers are behind the street name) the second part ist the postal code and the city name. The second part should never be changed, only the first part. Here, in this example there are all together 11 different house adresses put together. Heckenrosenweg 31 to Heckenrosenweg 41. The script should no do this: alert ("Heckenrosenweg 30,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 31,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 32,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 33,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 34,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 35,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 36,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 37,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 38,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 39,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 40,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 41,58708 Menden (Sauerland)"); alert ("Heckenrosenweg 42,58708 Menden (Sauerland)"); So, it should make an alert for every single address added one number less (30) and one number more (42). So, this is what I need! But there are some exceptions. Exception 1: There is only one single address i.e. "Bachstr. 37,58300 Wetter". Then only one number less and one number more have to be added, so: alert ("Bachstr. 36,58300 Wetter"); alert ("Bachstr. 37,58300 Wetter"); alert ("Bachstr. 37,58300 Wetter"); Exception 2: It is similar to exeption 1 but the house number is "1". So it males no sence to create house number "0". So: alert ("Bachstr. 1,58300 Wetter"); alert ("Bachstr. 2,58300 Wetter"); Exception 3: There is no house number displayed like "Kaiserstrasse,44265 Dortmund". The please create the first 20 house numbers like this: alert ("Kaiserstrasse 1,44265 Dortmund"); alert ("Kaiserstrasse 2,44265 Dortmund"); alert ("Kaiserstrasse 3,44265 Dortmund"); alert ("Kaiserstrasse 4,44265 Dortmund"); alert ("Kaiserstrasse 5,44265 Dortmund"); alert ("Kaiserstrasse 6,44265 Dortmund"); alert ("Kaiserstrasse 7,44265 Dortmund"); alert ("Kaiserstrasse 8,44265 Dortmund"); alert ("Kaiserstrasse 9,44265 Dortmund"); alert ("Kaiserstrasse 10,44265 Dortmund"); alert ("Kaiserstrasse 11,44265 Dortmund"); alert ("Kaiserstrasse 12,44265 Dortmund"); alert ("Kaiserstrasse 13,44265 Dortmund"); alert ("Kaiserstrasse 14,44265 Dortmund"); alert ("Kaiserstrasse 15,44265 Dortmund"); alert ("Kaiserstrasse 16,44265 Dortmund"); alert ("Kaiserstrasse 17,44265 Dortmund"); alert ("Kaiserstrasse 18,44265 Dortmund"); alert ("Kaiserstrasse 19,44265 Dortmund"); alert ("Kaiserstrasse 20,44265 Dortmund"); Exception 4: It may happen that the house number contains a key like "Kaiserstrasse 20a,44265 Dortmund". Then create additional one house number less and one house number more added with two more house number with that key (here the 'a') alert ("Kaiserstrasse 19,44265 Dortmund"); alert ("Kaiserstrasse 19a,44265 Dortmund"); alert ("Kaiserstrasse 20a,44265 Dortmund"); alert ("Kaiserstrasse 21,44265 Dortmund"); alert ("Kaiserstrasse 21a,44265 Dortmund"); That's it!

Habilidades: Engenharia, Javascript, MySQL, PHP, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: the parts house, heckenrosenweg 20a, javascript less than, javascript code parser, street address parser, create house, address parser, parser code, javascript alert form, php javascript address, javascript parser, java parser, form text alert, java germany, php address street data, 2500 part, javascript data text file, php javascript parser, postal code form, create postal address, parser script php, php script parser, data parser, script parser, php germany

Acerca do Empregador:
( 180 comentários ) London, United Kingdom

ID do Projeto: #2979741

Premiar a:

xsixer

See private message.

$25.5 USD em 2 dias
(132 Avaliações)
6.0

5 freelancers estão ofertando em média $23 para este trabalho

RockStone435

See private message.

$29.75 USD in 2 dias
(350 Comentários)
7.9
ofer

See private message.

$29.75 USD in 2 dias
(169 Comentários)
6.5
robweb2009

See private message.

$21.25 USD in 2 dias
(99 Comentários)
5.1
praneeth87

See private message.

$19.55 USD in 2 dias
(15 Comentários)
3.5
blekivw

See private message.

$12.75 USD in 2 dias
(3 Comentários)
1.0