One more Regular Expression Question...
| From: | Brad Melendy | Date: | Mon, 13 May 2002 23:01:10 +0000 |
| Subject: | One more Regular Expression Question... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97434@lists.php.net to get a copy of this message | ||
Hello,
I'm pretty stuck here. I wish to assign a variable the value of a
particular substrint of text from a second variable. It's HTML so I've got
something like:
$string1 = "<a href='/Schedule_Detail'>Here's the Schedule</a>"
I want to create a variable $string2 and assign it the value of whatever is
between ">" and "</a>". I just can't figure out how to do that.
Any kind souls want to give me a hand up? Thanks very much in advance.
...Brad
PS. I do have a PHP book and I did try reading up on regular expressions at
php.net first, but I'm just not getting it. :-\