Hi monks
i ve a problem in executing loop,i want to close the body tag before the reference or notes,or acknowledgement,if three statement will not present , the loop should close the body tag at the of chapter
the below code close the tag but the problem is , if the three statement present at a in a chapter mean it should close the body tag which statement come first.
The three statement may come in any order,my code put the tag before the reference statement because i put reference at the first position of the loop
References|Note|Acknowledgement,Note|References|Acknowledgementif($line =~ /<P_sec\d>(?:<\w>)?(<xref ref-type="page" id="page_\d+"\/> +)?(?:<\w>)?(References|Note|Acknowledgement)(?:<\/\w>)?<\/P_sec\d>/<\ +/body>\n$&/si) { } else{ $line .= "</body>\n"; }
pls give me a suggestion to solve my problem,thanks
In reply to detection in Loop condition by maha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |