in reply to Re: Re: replacing text in specific tags
in thread replacing text in specific tags
That is not an example, it is the actual content which i have to change
Really? It's just "YYY" that you have to replace with "XXX"? Just those three time the letter "Y"? And your tags are always X-REF followed by exactly a space, then REFID, then a =, then a ", etc? No spaces around the =, no single quotes? Good, then my regexes don't need any work!
Why are you printing $data? What's in that?print OUT $data;
Furthermore, if you read in the file line by line, you will only do the substitution if both the X-REF and the corresponding FTN are on the same line.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
with better example
by texuser74 (Monk) on Aug 21, 2003 at 11:04 UTC | |
by CombatSquirrel (Hermit) on Aug 21, 2003 at 12:09 UTC | |
by texuser74 (Monk) on Aug 22, 2003 at 01:15 UTC | |
by CombatSquirrel (Hermit) on Aug 22, 2003 at 11:03 UTC | |
by texuser74 (Monk) on Aug 25, 2003 at 04:33 UTC | |
| |
by Abigail-II (Bishop) on Aug 21, 2003 at 11:12 UTC |