pankaj.ghadge
12-23-2008, 01:15 PM
hello,
i want to split a string by 3 condition.
1)<font style="color: blue; background-color: yellow;">
2)</font>
3)rest of the string.
suppose string is as bellow ........(string is created dynamically so len is not specific)
<font style="color: blue; background-color: yellow;"> hi </font> hihisadsadasdfsdffasdf
<font style="color: blue; background-color: yellow;"> hi</font>
output
suppose a is array :
a[0]=><font style="color: blue; background-color: yellow;">
a[1]=>hi
a[2]=></font>
a[3]=>hihisadsadasdfsdffasdf
a[4]=><font style="color: blue; background-color: yellow;">
a[5]=>hi
a[6]=></font>
<font style="color: blue; background-color: yellow;"> & </font> will remain same only the string will change from the whole string.
please tell me how to split ..........................................
i want to split a string by 3 condition.
1)<font style="color: blue; background-color: yellow;">
2)</font>
3)rest of the string.
suppose string is as bellow ........(string is created dynamically so len is not specific)
<font style="color: blue; background-color: yellow;"> hi </font> hihisadsadasdfsdffasdf
<font style="color: blue; background-color: yellow;"> hi</font>
output
suppose a is array :
a[0]=><font style="color: blue; background-color: yellow;">
a[1]=>hi
a[2]=></font>
a[3]=>hihisadsadasdfsdffasdf
a[4]=><font style="color: blue; background-color: yellow;">
a[5]=>hi
a[6]=></font>
<font style="color: blue; background-color: yellow;"> & </font> will remain same only the string will change from the whole string.
please tell me how to split ..........................................