|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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
|
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Thu Sep 23, 2010 4:35 am |
Does {%dbkeys(@char_rec)} work?
|
|
|
|
|
|