Page 2 of 2

Posted: Sun Aug 13, 2006 8:01 pm
by feyd
hmm lets see...

Code: Select all

$yourText = '<data something="some value" somethingElse="some other value">';
$yourText = file_get_contents('someFilename.txt');

Posted: Sun Aug 13, 2006 8:04 pm
by toasty2
I thought yourText was what you are looking for, not what you look in. Also, I don't understand what purpose '#\b([a-z0-9]+)\s*=\s*(["\'])(.*?)\\2#is' has.

Posted: Sun Aug 13, 2006 8:09 pm
by feyd
It's called a pattern. The function runs regular expressions. The pattern is a regular expression that should find each attribute in each tag.