Test, validate and match regular expressions
This regex matches dynamic gallery placeholders such as `GALERY_1`, `#GALERY_2#`, or `#GALERY_123`. It captures the gallery's numeric ID, along with any optional surrounding hash symbols. It is typically used in CMS platforms or templating engines to parse detail text and replace these tags with an actual image gallery.