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
horks
Apprentice


Joined: 20 Jul 2001
Posts: 127
Location: USA

PostPosted: Wed Aug 31, 2005 7:05 pm   

Pattern matching problem
 
The pattern I'm trying to match is this:

"(%w) is distracted by the flames."

Seems pretty simple, but here's the problem. The pattern falls at the end of a paragraph, and depending on how long (%w) is (and how long the previous sentance is) any part of pattern can end up on a new line. Any good solution to match even if part is on a new line?

Thanks in advance
_________________
<b>Father Horks</b>
<i>The only problem with computer security, is when you think it exists.</i>
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Aug 31, 2005 9:38 pm   
 
First enable use of wildcards in {} patterns in the preferences. Next try this:

"(%w){$| }is{$| }distracted{$| }by{$| }the{$| }flames."
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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