Re: regexp problems



r_canor@xxxxxxx wrote:
Hi! I joined this group to searched for explanation about my problem
with regexp.

my procedure was just to validate an entry widget., using the
%substitution "%S". the procedure checks for a valid real numbers
using regular expression.

there is
[ string is double $value ]

I tested the procedure with one at a time keypress of alphabets..seem
OK.
I tested the procedure with faster keypress of alphabets..then all of
a sudden my procedure went on accepting any entry.
your regular expression failed i.e. the expression does not cover
your input ?


can anyone help me explain why this happen? I was about to trap the
data i need from this procedure, but if your finger is quick on the
letters-->my code does not function well.
could you post your code?

halfOT: I find validation on every character a bother.

uwe
.



Relevant Pages

  • regexp problems
    ... my procedure was just to validate an entry widget., ... %substitution "%S". ... I tested the procedure with one at a time keypress of alphabets..seem ...
    (comp.lang.tcl)
  • Re: Entry validation (was: endless loop & active window)
    ... do you really want to validate on every keypress, ... this shows how you can have the entry widget call a ... Note that he is NOT proscribing validation on every keypress; ... This input field is gonna be filled up by a bar code read ...
    (comp.lang.tcl)
  • Re: validate email and checks blank as well
    ... going to have more regular expression don't want to use both(require and ... I have all the controls formattted via HTML so they show on the page nice ... I've other controls which i use requirevalidator in the same column, ... textbox to validate and your done. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: What do you need to have to be considered a Master at Perl?
    ... Write a regular expression to ... validate it and capture a usable phone number. ... regurgitated to a human for the human to use, I'd by inclined to not validate at all, present it to the human as is and let the human do whatever validation/interpretation may be needed. ... candidate has a grasp of basic regular expressions: programmers who are ...
    (comp.lang.perl.misc)
  • Re: Entry Widget - Perl/Tk
    ... I do not know if validate would work. ... I am trying to do some error checking on my Entry Widget in this Perl/ ... text under Filename before he starts pressing the "Load" button. ... anchor => 'e'); ...
    (comp.lang.perl.misc)