Re: Re: Regex Help with -> ?
| From: | Gerard Samuel | Date: | Fri, 27 Jun 2003 18:30:06 +0000 |
| Subject: | Re: Re: Regex Help with -> ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153190@lists.php.net to get a copy of this message | ||
sven wrote:
looks like id3v2 ;-) how about this: $string = "<[TIT2]> ABC <[TPE1]> GHI <[TALB]> XYZ"; $pattern = "/<\[TIT2\]>([^<]*)/"; // matches anything exept '<'; till '<' or end of string preg_match($pattern, $string, $match); var_export($match);Yeah, Im trying to figure out a way to parse these tags.