preg_split help needed
Posted: Mon Mar 27, 2006 10:29 am
I have the following dynamic string:
Jacques, P</div><div class="text" style="line-height:13pt;">2789 Henri Cyr<br>Saint Hubert, QC J0Y 5N6
I need to split it to the different dynamic parts that I highlighted in bold:
-> Jacques
-> P
-> 2789
-> Henri Cyr
-> Saint Hubert
-> QC
-> J0Y 5N6
The HTML code in the string will always be there and therefore can be used as the delimiters for the preg_split function but I was never able to get it to work.
Thanks for your time and help is greatly appreciated.
Maxjac.
Jacques, P</div><div class="text" style="line-height:13pt;">2789 Henri Cyr<br>Saint Hubert, QC J0Y 5N6
I need to split it to the different dynamic parts that I highlighted in bold:
-> Jacques
-> P
-> 2789
-> Henri Cyr
-> Saint Hubert
-> QC
-> J0Y 5N6
The HTML code in the string will always be there and therefore can be used as the delimiters for the preg_split function but I was never able to get it to work.
Thanks for your time and help is greatly appreciated.
Maxjac.