In WordPress we can use shortcode function inside a post content using this format:
[shortcode]data[/shortcode]
for example:
[shortcode]Lorem ipsum[/shortcode] dolor sit amet, consectetur adipiscing elit. Praesent laoreet fermentum lacinia. Ut molestie purus interdum lacus pharetra placerat.
My question is, what is the regular expression that we need to replace any text inside the post content Except the one inside the shortcode?