File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes regular pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "regular pattern" Watch "regular pattern" New topic

regular pattern

Parashuram Hallur
Ranch Hand

Joined: Sep 18, 2006
Posts: 41

I am looking for regular pattern which will check for the characters
0-9a-zA-Z and '_' and non-ascii characters

If the input string contains any of the above characters should be allowed. Essentially I want to restrict only special characters but not non-ascii.

Thanks for any help

kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197


or better still, read this Regex tutorialtutorial

Who dares, wins! (SAS motto)
I agree. Here's the link:
subject: regular pattern
It's not a secret anymore!