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
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Sep 23, 2010 2:55 am   

[3.29] (Pattern-Matching) Database Keys no longer work as a list in Regex
 
In 3.28 the following pattern:
Code:

^((?:The ghost of )?(?:@char_rec))(?:[,\s])(\s+)?(\S+.*)$


Worked just fine, @char_rec is a database variable with thousands of database entries, where the key is the character name and the values are further database records containing information on the characters. However, in 3.29 it no longer works as an effect list for an OR statement in regex in the pattern. Is this an intended consequence of the dot operator change or a possible oversight? Thanks.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Sep 23, 2010 3:27 am   
 
It's related to the "fix" for allowing @db.key within {} pattern. It requires a rewrite of part of the parser and I didn't fix it for regular expressions, sorry. I'll put it back on the bug list. Sigh.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Sep 23, 2010 3:32 am   
 
I'm sorry! I'm quite anxious to see CMUD v3 released myself for various reasons and I'm sure this has been a nightmare for you. I don't mean to cause complications Sad
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Thu Sep 23, 2010 4:35 am   
 
Does {%dbkeys(@char_rec)} work?
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