I have been searched by the internet, however I didn't find a perfect solution, so I faith that someone already did something like this.
So my issue is, I'm using a webservice were you send the VAT number and if is valid you got the Company info. However the address received is the full address not divided by parts.
For example: Google Ireland VAT is IE6388047V
I got: Company Name: GOOGLE IRELAND LIMITED Address: 3RD FLOOR ,GORDON HOUSE ,BARROW STREET ,DUBLIN 4
So what I need is something like this: 3RD FLOOR ,GORDON HOUSE ,BARROW STREET ,DUBLIN 4 Converts this to:
Address: Ringsend Post Office, Gordon House, Barrow St
City: Dublin 4
Country: Ireland
Someone can help me and make the day? Thank you so much!