title: RegExpValidator never matches
body: <p>I've got a class that's meant to validate input fields to make sure the value is always a decimal.  I've tested the regex here: <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=validators_7.html" rel="nofollow noreferrer">http://livedocs.adobe.com/flex/3/html/help.html?content=validators_7.html</a>, and it looks like it does the right thing, but in my app, I can't seem to get it to match to a number format.</p>
  
  <p>Class Definition:</p>
  
  <pre><code>public class DecimalValidator {
      //------------------------------- ATTRIBUTES
      public var isDecimalValidator:RegExpValidator;
  
      //------------------------------- CONSTRUCTORS
      public function DecimalValidator() { 
          isDecimalValidator                  = new RegExpValidator();
          isDecimalValidator.expression       = "^-?(\d+\.\d*|\.\d+)$";
          isDecimalValidator.flags            = "g";
          isDecimalValidator.required         = true;
          isDecimalValidator.property         = "text";
          isDecimalValidator.triggerEvent     = FocusEvent.FOCUS_OUT;
          isDecimalValidator.noMatchError     = "Float Expected";
      }
  
  }
  </code></pre>
  
  <p>Setting the source here:</p>
  
  <pre><code>public function registerDecimalInputValidator(inputBox:TextInput, valArr:Array):void  {
          // Add Validators
          var dValidator:DecimalValidator = new DecimalValidator();
          dValidator.isDecimalValidator.source = inputBox;
          dValidator.isDecimalValidator.trigger = inputBox;
  
          inputBox.restrict = "[0-9].\\.\\-";
          inputBox.maxChars = 10;
  
          valArr.push(dValidator.isDecimalValidator);
      }
  </code></pre>
  
  <p>And Calling it here:</p>
  
  <pre><code>registerDecimalInputValidator(textInput, validatorArr);
  </code></pre>
  
  <p>Where textInput is an input box created earlier.</p>
  
  <p>Clearly I'm missing something simple yet important, but I'm not entirely sure what! Any help would be much appreciated.</p>