I am creating dynamic XML and need to update the lastBuildDate in a file on my server. I know how to do everything but change that.
I figured I could use preg_match to look for the expression and preg_replace to replace it. My string will look like this:
$build_date = '<lastBuildDate>Fri 16 Sep 2011 2:30:15 -6:00 GMT<lastBuildDate>';
How do I use preg_match to find the date inside the tags and then how do I replace it? I'm a noob when it comes to regular expressions, which is what I think I have to use. I'm just not sure how to find a wildcard inside that string.
Thanks.