Building on this question: Regular expression to extract text between square brackets
this is a [sample] string with [some] special words. [another one]
I need to extract the text between [sample] and [some] plus the two boundaries too. In other word I want the regex that matches [sample] string with [some]