2 Replies Latest reply on Jul 23, 2010 9:39 AM by justinbanks

    Regular expression woes


      I'm trying to match either a url or an asterisk on it's own. In perl I can do this with (^.*[a-zA-Z/]$)|(^\*$) and that works okay on the validators I've tried online as well, but doing



      this.txtRELocationValidator.expression = "(^.?*[a-zA-Z/]$)|(^\*$)";


      <mx:RegExpValidator id="txtRELocationValidator" source="{this.txtLocation}" property="text" required="true" requiredFieldError="Location is required." noMatchError="Please enter a valid URL." />


      does not work no matter how I massage it. Any clues? TIA