# Comment-out of entire regex search

**URL:** https://community.mp3tag.de/t/comment-out-of-entire-regex-search/62104
**Category:** Support
**Created:** [September 12, 2023, 2:12am UTC](https://community.mp3tag.de/t/comment-out-of-entire-regex-search/62104 "2023-09-12T02:12:45Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [September 12, 2023, 1:21pm UTC](https://community.mp3tag.de/t/comment-out-of-entire-regex-search/62104/4 "2023-09-12T13:21:47Z")

</div>

According to @Florian's [latest information](https://community.mp3tag.de/t/which-regular-expression-engine-and-syntax-is-used-by-mp3tag/47713/8) about the used Boost.Regex, such a comment

![image](https://community.mp3tag.de/uploads/default/original/2X/8/8d81fbca96b7730d759ec686283aa0fac5c8d0b1.png)  
[should be valid](https://www.boost.org/doc/libs/1_83_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html#boost_regex.syntax.perl_syntax.comments), but I also get the same error for  
`(?#^(.+?) \[music\]; (.+?) \[lyrics\]$)`  
as you:

![image](https://community.mp3tag.de/uploads/default/original/2X/a/aca83597b6ea5e4b05eb2762d644ad189f2e5a13.png)

If I suppress the last closing brace this regular expression can be saved.  
As I don't know what exactly you like to achieve with it, I can't test it.

---

_[View the full topic](https://community.mp3tag.de/t/comment-out-of-entire-regex-search/62104)._
