Ignore:
Timestamp:
08/28/07 12:47:03 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdata/MDataPhrase.cc

    r8704 r8717  
    143143    while (1)
    144144    {
     145        // \\A: matches the beginning of the string like ^ does
     146        // \\Z: matches the end       of the string like $ does
    145147        // \\W: matches any non-word character [^a-zA-Z_0-9]
    146         TPRegexp reg(Form("\\W\\[0*%d\\]\\W", idx));
     148        TPRegexp reg(Form("(\\A|\\W)\\[0*%d\\](\\W|\\Z)", idx));
    147149        if (reg.Match(phrase, mods, 0, 130, &pos)==0)
    148150            break;
     
    268270
    269271        // Also hex-numbers and floats fullfill our condition...
     272        // FIXME: WHY HEX NUMBERS?
    270273        if (!expr(ishex).IsNull() || expr.IsFloat())
    271274        {
Note: See TracChangeset for help on using the changeset viewer.