Henry Grech-Cini schrieb:
Thanks Sven,
You are quite right with your "some probs" comment.
hi,
think i found it. try this:
(.*)<\/fieldset>/iU';
?>
the '/U' stands for 'ungreedy'. also note the change in the attribs-regex.
hth SVEN
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Thanks Sven,
You are quite right with your "some probs" comment.
Do you know what the the switch is that catches only the least result?
I now get
(0)=
(0)=[hello legendcontent of
helloblahgoodbye]
(1)=
(0)=[ attribute="hello"]
(2)=
(0)=[hello legendcontent of
helloblahgoodbye]
as we can see
Henry Grech-Cini schrieb:
...
$regexp="/]*)>[^(<\/fieldset>)]*/i";
...
$result=extractFieldsets('testcontent of
helloblahgoodbye');
...
And it produced;
(0)=
(0)=[con]
(1)=[goo]
(1)=
(0)=[ attribute="hello"]
(1)=[ attribute="goodbye"]
hi,
as it is defined in regex-spec: a '^' inside a char-group
Hi All,
I don't actually think regexp is fault. But if anyone could explain this or
give me some example code that will extract the attributes and data between
a "fieldset" tag pair I would be appreciated.
Henry
"Henry Grech-Cini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
4 matches
Mail list logo