I have a text file with up to 100000 lines like the following:
$P:U
$A:A
$C:Code_Opportunity
$U:N
$V:' '
$P:U
$A:A
$C:Code_Ratings_Code
$U:N
$V:' '
$T:CHAR(1)
Each "tag" starts with "$" and ends with ":". They should be in groups of 6 lines, one each of: $P: $A: $C: $U: $V: $T: in a group.
However, there may be some "$T:" tags missing (see the first group, above), so I want to parse the file and identify the missing "$T:" tags and insert them as "$T:<missing>".
To make matters worse, I will also have to do the same for missing "$V:" tags...
I tried the (Ultraedit style) Find RegExp "^$V:*^P%^$P:" but this finds every $V: tag. Also "^$V:*^P%^$P:" finds none.
Hope the above is clear, but what am I doing wrong?
TIA
$P:U
$A:A
$C:Code_Opportunity
$U:N
$V:' '
$P:U
$A:A
$C:Code_Ratings_Code
$U:N
$V:' '
$T:CHAR(1)
Each "tag" starts with "$" and ends with ":". They should be in groups of 6 lines, one each of: $P: $A: $C: $U: $V: $T: in a group.
However, there may be some "$T:" tags missing (see the first group, above), so I want to parse the file and identify the missing "$T:" tags and insert them as "$T:<missing>".
To make matters worse, I will also have to do the same for missing "$V:" tags...
I tried the (Ultraedit style) Find RegExp "^$V:*^P%^$P:" but this finds every $V: tag. Also "^$V:*^P%^$P:" finds none.
Hope the above is clear, but what am I doing wrong?
TIA