aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Regec Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Regec Problem" Watch "Regec Problem" New topic
Author

Regec Problem

Felipe Messina
Greenhorn

Joined: Oct 21, 2009
Posts: 11
I wanna a KeyPressEvent that fills a text field with a mask like this(999,9999).
I have to do this, using regular expression.

Can someone help me?

thanks


Felipe Messina
SCJP Certified
John de Michele
Rancher

Joined: Mar 09, 2009
Posts: 600
Felipe:

What have you tried so far? What errors or exceptions are you getting? Remember, JavaRanch is not a code mill.

John.
Felipe Messina
Greenhorn

Joined: Oct 21, 2009
Posts: 11
I did this



But this way, let me put only 2 digits after the "," and I HAVE to have 3 digits before and 4 after.
John de Michele
Rancher

Joined: Mar 09, 2009
Posts: 600
Felipe:

What language are you using?

John.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16695
    
  19

Looks like Javascript. Java and Javascript are *not* the same thing. Anyway, moving this to the JS forum.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Felipe Messina
Greenhorn

Joined: Oct 21, 2009
Posts: 11
JavaScript..

I know that isnt the same, but I didnt find the JavaScript forum.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Regec Problem
 
Similar Threads
Cant use object from another class
Posting to bump up my count...
WA #1.....word association
The x900 effect ?
Text box value is not being completely filled with request attribute