wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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)
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: regular pattern
Similar Threads
Politically Correct: I Can't Say Anything Anymore
Binary files
How to make sure a file is a valid text file.
regex Pattern class and spaces