[MudWalker] Room Description

Kevin Reid kpreid at mac.com
Thu Jan 29 07:21:17 PST 2009


On Jan 29, 2009, at 9:31, Dom Sengsouvanna wrote:
> The Southern Courtyard [n,ne,s,nw,tower].
>
> Trigger:
>
> ^(.*) * [(.*)].


Square brackets specify character classes; you need to escape them:

^(.*) * \[(.*)\].

Also, "." means any character, so for exact matches you should escape  
them.

^(.*) * \[(.*)\]\.

Also, " * " (zero or more spaces, followed by one space), is exactly  
the same as " +" (one or more spaces).

^(.*) +\[(.*)\]\.

Also, you might want to constrain it to match the end of the line as  
well, though it won't make a difference for this particular pattern.

^(.*) +\[(.*)\]\.$

-- 
Kevin Reid                            <http://homepage.mac.com/kpreid/>




More information about the MudWalker mailing list