
October 29th, 2008, 02:22 PM
|
|
|
Search content in string between two separators
Hello,
I am looking to fetch the data between two xml tags.
xml Code:
Original
- xml Code |
|
|
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <userName>Agri</userName>
I would like to fetch "Agri" from the above, unfortunately my server does not have any PHP xml parsers like SimpleXML installed, can this be achieved with regex?
Cheers,
|