TinTin++ Mud Client Manual  
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
Regexp
space
Syntax: #regex {string} {regex} {true} {false}
space
The #regex command (short for regular expression) is used to compare the given string to the given regular expression. Variables are stored in &1 to &99 with &0 holding the entire matched substring.
space
If the message starts with ^ the beginning of the action message and mud message must match. If the message ends with a $ the end of the action message and mud message must match.
space
The following support is available for regular expressions.

  { } embed a perl compatible regular expression, available at %xx + 1.

  [ ] . + | ( ) ? * are treated as normal text unlessed used within braces. Keep in mind that { } is replaced with ( ).

Of the following arguments the (lazy) match is available at %xx + 1

  %w match zero to any number of letters.
  %W match zero to any number of non letters.
  %d match zero to any number of digits.
  %D match zero to any number of non digits.
  %s match zero to any number of spaces.
  %S match zero to any number of non spaces.
  
  %? match zero or one character.
  %. match one character.
  %+ match one to any number of characters. 
  %* match zero to any number of characters.
  
  %i match becomes case insensitive.
  %I match becomes case sensitive (default).
space
Example: #regex {Hello World} {%* World} {#showme Matched &1 World} {#showme no match :( }