04: FINDing your Way Around
Re: 04: FINDing your Way Around
The second one does work. You can have a FIND be multiple lines and then do IN-LINE actions on those. IN-LINE actions can only be one line though (the IN-LINE FIND).
Eric
Re: 04: FINDing your Way Around
Hm... So the one below wouldn't/shouldn't work 
Assuming that we work on the following file:
The output file is:
I'm just not sure if the lines found in the first FIND are (or should be) treated as one line or as separate ones?
I belive it would be easier to treat them as one. Other wise, how to treat two (or more) IN-LINEs - should the next in-line be applied to the next (second) line or to the same (first) line, what if only one line was found...
Assuming that we work on the following file:
Code: Select all
This is the first line.
This is the second line.
This is the third line.
This is the fouth line.
Code: Select all
#-----[ OPEN ]------
input
#-----[ FIND ]------
This
This
#-----[ IN-LINE FIND ]------
# Note: Trying to find in the second line...
second
#-----[ IN-LINE REPLACE WITH ]------
blah
Code: Select all
This is the first line.
This is the blah line.
This is the third line.
This is the fouth line.
I belive it would be easier to treat them as one. Other wise, how to treat two (or more) IN-LINEs - should the next in-line be applied to the next (second) line or to the same (first) line, what if only one line was found...
How To Ask Questions The Smart Way.
ReadMe ver. 0.0.4 for EasyMOD ver. 0.3.0 (on-line at sourceforge)
Recent problems that are not answered in the ReadMe.
My page: DOM, Javascript, SQL - tips&scripts (mostly in Polish, sorry
)
ReadMe ver. 0.0.4 for EasyMOD ver. 0.3.0 (on-line at sourceforge)
Recent problems that are not answered in the ReadMe.
My page: DOM, Javascript, SQL - tips&scripts (mostly in Polish, sorry
Re: 04: FINDing your Way Around
That will work. FINDs can be multiple lines. IN-LINE actions can't. So you can do a FIND with multiple lines and then do an IN-LINE FIND to perform IN-LINE actions on a certain line within the multi lined FIND.
Eric