|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by blacklord in Regular Expressions
Hello,
My html code is:
<templateblock name="A">
<templateblock name="B">
</templateblock>
</templateblock>
My Pattern:
/<templateblock name=\".*?\">([\w\W]*)<\/t
emplateblo
ck>/U";
This pattern does not work because it gets from the beginning of template block A through en of template block B.
My first question is:
How can i retrieve whole content of templateblock A?
My second question is:
How can i retrieve only the content of first level template blocks, just ignore the blocks in blocks?
Note: template block name attribute values may change.
20091111-EE-VQP-89 / EE_QW_2_20070628