aspose file tools*
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
Author

regular pattern

Parashuram Hallur
Ranch Hand

Joined: Sep 18, 2006
Posts: 41
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
Try:

[0-9a-zA-Z_']


or better still, read this Regex tutorialtutorial


Who dares, wins! (SAS motto)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regular pattern