I have strings that have blocks enclosed in underscores in them. Example:
*Text* _word_ it is something we read every day. _Words in texts_ can be really exp
Have a try with:
((?:_[^_\r\n]*){2})$
It matches an underscore followed by any number of any character that is not underscore or line break, all that occurs twice before the end of lien.