# Replay gain code

**URL:** https://community.mp3tag.de/t/replay-gain-code/42347
**Category:** Support
**Created:** [July 15, 2018, 12:14pm UTC](https://community.mp3tag.de/t/replay-gain-code/42347 "2018-07-15T12:14:25Z")
**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: [July 15, 2018, 1:01pm UTC](https://community.mp3tag.de/t/replay-gain-code/42347/4 "2018-07-15T13:01:25Z")

</div>

> [@sheepdisease](#):
>
> (\\+|-)?\\s?(\\d\*\\.\\d\*)\\sDB

Use one of the many regular expression online sites like

> **[regex101: build, test, and debug regex](https://regex101.com)**
>
> Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.

or

> **[Regexper](https://regexper.com/)**
>
> Regular expression visualizer using railroad diagrams

and you get:

```
1st Capturing Group (\\+|-)?
   ? Quantifier — Matches between zero and one times, as many times as possible, giving back as needed (greedy)
   1st Alternative \\+
      \\+ matches the character \ literally (case sensitive)
        + Quantifier — Matches between one and unlimited times, as many times as possible, giving back as needed (greedy)
   2nd Alternative -
        - matches the character - literally (case sensitive)

\\ matches the character \ literally (case sensitive)
   s? matches the character s literally (case sensitive) 
   ? Quantifier — Matches between zero and one times, as many times as possible, giving back as needed (greedy)

2nd Capturing Group (\\d*\\.\\d*)
   \\ matches the character \ literally (case sensitive)
      d* matches the character d literally (case sensitive)
       * Quantifier — Matches between zero and unlimited times, as many times as possible, giving back as needed (greedy)
   \\ matches the character \ literally (case sensitive)
      . matches any character (except for line terminators)
   \\ matches the character \ literally (case sensitive)
      d* matches the character d literally (case sensitive)

\\ matches the character \ literally (case sensitive)
   sDB matches the characters sDB literally (case sensitive)

```

or

![RegEx](https://community.mp3tag.de/uploads/default/original/2X/4/451c9fe6410c4eb87fbf360470ef0ca305474e37.png)

Mp3tag is a tagging program. Not a "do-any-modification-to-my-music" application.  
Further explanation for [REPLAYGAIN Metadata](https://en.wikipedia.org/wiki/ReplayGain#Metadata).

---

_[View the full topic](https://community.mp3tag.de/t/replay-gain-code/42347)._
