I'm always rather surprised to see questions like this. Where did you look for the information? Have you read about regular expressions, and not understood the information - or are you just coming here to save yourself the trouble? I can show you how to extend the regular expression to include "_", but my worry is that you'll then just come back with another question asking how to add the next feature.
In short, I need to understand what concept you haven't understood.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference