how can you remove xml tags from a file
file:
=======================================================
<!-- NB: All suites del.batches will be run at the beginning followed by the
rmhist.batches
to ensure that all msisdns are in a suitable position to be used
-->
<batch_script>
regr6_tmob_susp_del.batch
</batch_script>
<batch_script>
regr22_adhoc_del.batch
</batch_script>
<!-- <batch_script>
regr2_del.batch
</batch_script> -->
<batch_script>
regr1_del_t9.batch
</batch_script>
<batch_script>
regr1_del_t10.batch
</batch_script>
<!-- <batch_script>
regr8_del.batch
</batch_script> -->
======================================================
all i want left is the uncommented text
i have tried the following subs so far
$stre=~s/<\!\-\-([a-zA-Z\.\s\n])*\-\-\>//go; print “$1”;
$stre=~s/<\!\-\-.*.\-\->//mg;
$stre=~s/<.*>//g;
i have had trouble with the spaces tabs and other formatting
can you help
Thanks
ANDY
file:
=======================================================
<!-- NB: All suites del.batches will be run at the beginning followed by the
rmhist.batches
to ensure that all msisdns are in a suitable position to be used
-->
<batch_script>
regr6_tmob_susp_del.batch
</batch_script>
<batch_script>
regr22_adhoc_del.batch
</batch_script>
<!-- <batch_script>
regr2_del.batch
</batch_script> -->
<batch_script>
regr1_del_t9.batch
</batch_script>
<batch_script>
regr1_del_t10.batch
</batch_script>
<!-- <batch_script>
regr8_del.batch
</batch_script> -->
======================================================
all i want left is the uncommented text
i have tried the following subs so far
$stre=~s/<\!\-\-([a-zA-Z\.\s\n])*\-\-\>//go; print “$1”;
$stre=~s/<\!\-\-.*.\-\->//mg;
$stre=~s/<.*>//g;
i have had trouble with the spaces tabs and other formatting
can you help
Thanks
ANDY