Quote:
Originally Posted by organized_chaos
This works for single words, but how can I make it work with entire sentences? I'm sorry, I've never needed to edit documents like this before. 
|
_([a-z ]+?)_
will work for words and spaces. If there might be punctuation involved, you could also add in those characters, e.g.
_([a-z ,.'"-;:]+?)_
or you could go for the slightly more chancy approach of
_([^_]+)_
which searches for an underscore, as many characters as possible that aren't an underscore, and then another underscore.