Extract tag content

Extract text enclosed by the specified tags.

Input example

[IMG]https://example.com/a.png[/IMG]

Output example

https://example.com/a.png

Opening tag: [IMG] ยท Closing tag: [/IMG]