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


Joined: 31 Jan 2006
Posts: 106
Location: Virginia Beach, Virginia

PostPosted: Sat Feb 25, 2006 8:36 pm   

Trigger help
 
H:118 M:118 <eb>

that is what it is normally, but the eb can be -b, e-, eb p, -b p, and so forth.
I've got, H:(\d+) M:(\d+) <([a-z]+)> which of course will catch eb, e, or b, but i'm not sure if it will catch the others?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Feb 26, 2006 6:19 am   
 
If I understand regex correctly, a-z will not catch dashes or spaces. Need to add those in at the end of the range ([a-z- ]), or change a-z to specific letters you want to capture.
_________________
EDIT: I didn't like my old signature
Reply with quote
Strakc
Apprentice


Joined: 31 Jan 2006
Posts: 106
Location: Virginia Beach, Virginia

PostPosted: Sun Feb 26, 2006 6:45 am   
 
not all sure what all letters it can display i dont remember, but to add them just ([a-z- -]) or something and it should work?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Feb 26, 2006 2:11 pm   
 
based on my limited understanding of REGEX, yes. The equivalent in zscript is as I noted.
_________________
EDIT: I didn't like my old signature
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Mon Feb 27, 2006 3:17 pm   
 
The regex pattern I would use for a prompt like this:

Code:
H\:(\d+) M\:(\d+) \<([ebp \-]+)\>


If there are other letters besides e, b, and p that can show up in your prompt flags, just add them.
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