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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Zhiroc
Adept


Joined: 04 Feb 2005
Posts: 246

PostPosted: Wed Aug 15, 2007 4:25 am   

Bug in RE trigger pattern
 
Do the following:
Code:
#REGEX {^\[?foo} {#SH saw it}
#SH foo

You'll see it doesn't match. The problem seems to be how it sets up the pattern:
Code:
0012   STR   '^\[?foo]'

Note the extra closing "]" in the string.

One way around this is to use the pattern: "^[[]?foo"
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Aug 15, 2007 8:05 am   
 
Confirmed.
_________________
Asati di tempari!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Aug 15, 2007 10:49 am   
 
See also this thread.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Daagar
Magician


Joined: 25 Oct 2000
Posts: 461
Location: USA

PostPosted: Wed Aug 15, 2007 3:23 pm   
 
This is probably obvious, but this bug also impacts the ability to use regex to capture ansi patterns using the "\033\[34m" syntax (though I haven't tried it with Fang's/Zhiroc's workaround).
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Aug 15, 2007 7:12 pm   
 
This is already fixed in v2.0 :)
Reply with quote
Daagar
Magician


Joined: 25 Oct 2000
Posts: 461
Location: USA

PostPosted: Wed Aug 15, 2007 8:53 pm   
 
Stop teasing! ;)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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