Extract pattern from `StringExpression` [closed]

I want to extract a string that is book-ended by two strings. For example, given This is emphasized , I can find the whole string using a StringExpression of the form ““~~__~~”“. How do I extract the “__” part? I can hack it by using StringDrop if I know in advance the sizes of the bookends, but there should be a more elegant way.

=================

=================

1 Answer
1

=================

StringCases[“tu tia mi tia“, “” ~~ a__ ~~ “” :> a]
{“tu tia mi tia”}