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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Soujirou
Newbie


Joined: 26 Oct 2009
Posts: 7

PostPosted: Sun Jan 24, 2010 7:58 pm   

Commands
 
Alright, I know ^ and $, but can someone direct me to maybe a list of other similar things in terms of being exact with syntax? I'm trying to make an enemy list, but it colors every instance of the said syntax... confusing, but let me give an example...
Enemy Name: Jewel
Soujirou says: "I'd like some jewelery..."
The "Jewel" in jewelery is colored the enemy color; what command (similar to ^ and $) can I put in to tell it "just this, and only this."
Thanks in advance!
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Sun Jan 24, 2010 9:08 pm   
 
if your useing cmud, theres a checkmark box in the options at the bottom for verbatim to match the pattern exactly
in fact explore those cause alot of them are useful
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jan 24, 2010 9:15 pm   
 
%q or \b
These match on word boundaries, specifically on those that contain whitespace or punctuation. ie, %qJewel%q matches " Jewel " but doesn't match " starJewel ".

%y
I dunno what the regex equivalent is, but it matches on the same thing that %x does--but only at the start or end of lines. In other words "%y Ted" = "^%x Ted".

For more wildcards, check out the pattern matching symbols entry in the helpfile.
_________________
EDIT: I didn't like my old signature
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sun Jan 24, 2010 9:38 pm   
 
Here is a page with syntax. Match

Here is another page with important info. #REG
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Soujirou
Newbie


Joined: 26 Oct 2009
Posts: 7

PostPosted: Sun Jan 24, 2010 9:39 pm   
 
Thanks very much!!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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