Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regular pattern

 
Parashuram Hallur
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try:

[0-9a-zA-Z_']


or better still, read this Regex tutorialtutorial
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic