I'm trying to rebuild an HTML index from an IPL script. Common, right? What I'm having a hard time with is having the following STRING REPLACEMENT validate for the given string below. This is an EXAMPLE -- I am
not posting TS documentation:
STRING REPLACEMENT$txt =~ s/<!-- BEGIN $someVar -->
(.*)<!-- BEGIN /<!-- BEGIN $someVar -->$1$insertedTxt<!-- BEGIN /g;
SAMPLE TEXT
<!-- BEGIN GLOBAL -->
<!-- BEGIN 6.5TSa -->
<UL>
<LI><STRONG>TEAMSITE 6.5 ADMIN DOCUMENTATION</STRONG>
<UL>
<!-- BEGIN SUB tfo.563.rn.pdf -->
<LI>6.5TSa: PDF Support Library (<a target="_blank" href="tfo.563.rn.pdf">produced May 9, 2005</a>)<br><br></LI>
<!-- END SUB tfo.563.rn.pdf --></UL>
</UL>
<!-- END 6.5TSa -->
I'm basically trying to insert some string just before "<!-- BEGIN SUB tfo.563.rn.pdf -->". Any help greatly appreciated. Regex's make me dizzy sometimes.
Dave
Current Environment(s):
(1) TS 6.5 on W2K3
(2) TS 6.1 SP1 on W2K3
By the way, I miss Unix terribly.