I am trying write a regular expression that will match everying in between two specific words but will also discard all substrings of a specific pattern.
For example, if the given sentence is: 'START this is [*9-11*0] a dummy [3-*1] sentence END', I want to write a regular expression to get the answer: this is a dummy sentence
If I only want to match everything in between the words START and END, I can write regular expression: START(.*?)END
But I also want to discard all the patterns in between that starts with [ followed by any combination of numbers, hyphen and * and ending with ].
How do I do that?