extract two parts of a string using regex in php
Posted
by
Jubair
on Stack Overflow
See other posts from Stack Overflow
or by Jubair
Published on 2012-12-09T02:32:30Z
Indexed on
2012/12/09
5:05 UTC
Read the original article
Hit count: 85
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.
© Stack Overflow or respective owner