|
aking Newbie
Joined: 17 Oct 2002 Posts: 2 Location: United Kingdom
|
Posted: Fri Oct 18, 2002 10:46 am
capturing line after next line |
I am trying to capture a single line of text which appears after a string. The string is
- n
Where n could be any word and the '-' is at the start of the line, I want to capture the next full line of text which will be after an empty line and put it into a variable.
Ive tried adapting verious solutions from the forum but I cant get it to work. |
|
|
|
cingulli Wanderer
Joined: 30 Aug 2001 Posts: 53 Location: Finland
|
Posted: Fri Oct 18, 2002 11:00 am |
#tr {- (%w)$(*)$(*)} {#var line "%3"}
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Oct 18, 2002 5:55 pm |
Or:
#TR {- *$*$(*)$} {#VAR line3 {%1}}
LightBulb
Senior Member |
|
|
|
|
|