b***@mnogosearch.org
2016-03-11 15:17:07 UTC
Author: Alexander Barkov
Email: ***@mnogosearch.org
Message:
Hello,
Try to add some more context to the regular expression.
Email: ***@mnogosearch.org
Message:
Hello,
Hello,
I'm trying to retrieve the content of a <div> element in a Section, but can't get it
to work.
<div id="myid">(the stuff i want)</div>
The problem is, the stuff i want may contain nearly anything (but especially other
Section text 1 2048 '<div id="myid">(.*)</div>' "$1"
But it doesn't work as it doesn't stop on the first </div> element.
Any idea of a workaround to get it working ?
Right. REGEX uses hangry match. That means it finds the longest substring that matches: the left <dev..> and the right </div>.I'm trying to retrieve the content of a <div> element in a Section, but can't get it
to work.
<div id="myid">(the stuff i want)</div>
The problem is, the stuff i want may contain nearly anything (but especially other
Section text 1 2048 '<div id="myid">(.*)</div>' "$1"
But it doesn't work as it doesn't stop on the first </div> element.
Any idea of a workaround to get it working ?
Try to add some more context to the regular expression.
Thanks.
Reply: <http://www.mnogosearch.org/board/message.php?id=21754>