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 expressive. _A nice text is a pleasure for your body and soul_ (Oscar Wilde)
In the example above there are three such blocks but the number varies from string to string. I want to match only the last one, i.e. starting from the end of the line lazily skip characters until the first _ is found, skip any following characters until encountering the second _ and stop right there.
It is easy to to find a similar block if we were looking for the very first one inside the string, but how about finding the last one?
"A nice text is a pleasure for your body and soul"
? be explicit