Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
aking
Newbie


Joined: 17 Oct 2002
Posts: 2
Location: United Kingdom

PostPosted: 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.
Reply with quote
cingulli
Wanderer


Joined: 30 Aug 2001
Posts: 53
Location: Finland

PostPosted: Fri Oct 18, 2002 11:00 am   
 
#tr {- (%w)$(*)$(*)} {#var line "%3"}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Oct 18, 2002 5:55 pm   
 
Or:
#TR {- *$*$(*)$} {#VAR line3 {%1}}

LightBulb
Senior Member
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net