How to match text inside starting and closing curly brace, the tags and the specified attributes
问题 I am implementing a plugin code for my CMS system. Something like a shortcode but will be applicable in many scenarios. I want a case where an admin writes his code like this: Example 1: {COMMAND_NAME}Strings of texts that conatains htmltags,symbols,just anything{/COMMAND_NAME} Example 2 {COMMAND_NAME} Example 3 {COMMAND_NAME{attriute1=value attribute2=value}} Example 4 {COMMAND_NAME{attriute1=value attribute2=value}}Strings of anything including texts, htmltags and anything at all {/COMMAND