You can just add the underscore directly into the character class. For the hyphen, you can do the same if you make it the very last thing in the class (so that it is not interpreted as indicating a range of characters, or it can be anywhere if you escape it with a back-slash.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks