extract two parts of a string using regex in php
- by Jubair
Ok so I have this string:
<img src=images/imagename.gif alt='descriptive text here'>
and I am trying to split it up into the following two strings (array of two strings, what ever, just broken up).
imagename.gif
descriptive text here
Note yes, its' actually the & lt; and not < same with the closing on the string.
I know regex is the answer, but not the best at regext to know to pull it off in php.