A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
regular pattern
Parashuram Hallur
Ranch Hand
Joined: Sep 18, 2006
Posts: 41
posted
Jul 18, 2007 02:51:00
0
Hi,
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
Regards
Parash
kwame Iwegbue
Ranch Hand
Joined: Sep 02, 2000
Posts: 197
posted
Jul 18, 2007 07:59:00
0
Try:
[0-9a-zA-Z_']
or better still, read this
Regex tutorial
tutorial
Who dares, wins! (SAS motto)
I agree. Here's the link:
http://aspose.com/file-tools
subject: regular pattern
Similar Threads
Binary files
Politically Correct: I Can't Say Anything Anymore
regex Pattern class and spaces
images
How to make sure a file is a valid text file.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter