Need your help to split the string in to multiple strings and store in fix variable.
I have a string with address details as below: Rajesh T
** BLOCK G-01-01**
** VIDYANAGARA 15**
** HYDERABAD**
** 51000 HYD**
** RANGAREDDY**
I want to store these information in below variables;
Owner Name
Address1
Address2
Address3
Address4
Post code City
State
The challange I am facing ,some times the address values (Address1,Address2…)will not be available in that case how i can handle the variables to store in fix variables?
Thank you for your response,the code works for me if there is string fixed but some time my string will be like below:
Example1:
"Rajesh T
** VIDYANAGARA 15**
** HYDERABAD**
** 51000 HYD**
** RANGAREDDY** "
Example 2:
"Rajesh T
** VIDYANAGARA 15**
** 51000 HYD**
** RANGAREDDY** "