# Regular Expression Syntax (Edition In Progress)

**URL:** https://community.mp3tag.de/t/regular-expression-syntax-edition-in-progress/42020
**Category:** General Discussion
**Created:** [June 24, 2018, 1:01pm UTC](https://community.mp3tag.de/t/regular-expression-syntax-edition-in-progress/42020 "2018-06-24T13:01:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Alex5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@Alex5](https://community.mp3tag.de/u/Alex5)
#### Post date: [June 24, 2018, 1:01pm UTC](https://community.mp3tag.de/t/regular-expression-syntax-edition-in-progress/42020/1 "2018-06-24T13:01:39Z")

</div>

I made a simplifyed version of RES, making everything clearer to operate with single-line moderations only though. Anyway check it out and vote for it, so everyone does not have to ask questions "how-to-do-this-help", and can write his needed code himself(/herself)

All **characters** are **literals** except **[.] [|] [\*] [?] [+] [(] [)] [{] [}] [[] [] ] [^] [$]**.  
These characters are literals when preceded by a **[\]**.

**[MATCHING]** - use **[x]** to match:

**[^]** - [starting from the start of a line]  
**[$]** - [starting from the end of a line]

**[[abc] ]** - [every character of **[a]**, **[b]**, and **[c]** (bigger or smaller combinations also possible)]  
**[[^abc] ]** - [any character other than **[a]**, **[b]**, or **[c]** (bigger or smaller combinations also possible)]  
**[[a-z] ]** - [any character in the range **[a]** to **[z]**]  
**[[^A-Z] ]** - [any character other than in the range **[a]** to **[z]**]

**[.]** - [any single character]  
**[\w]** - [any word character from all alphanumeric characters plus the underscore]  
**[\s]** - [any whitespace character]  
**[\d]** - [any digit]  
**[\l]** - [any lower case character]  
**[\u]** - [Any upper case character]

**[\W]** - [non-word character]  
**[\S]** - [non-whitespace character]  
**[\D]** - [non-digit]  
**[\L]** - [non-lower case character]  
**[\U]** - [non-upper case character]

**[\b]** - [a word boundary (the start or end of a word)]  
**[\B]** - [any line location only when not at a word boundary]

**[REPEATS]** - after matching a literal, add **[x]**, when it's repeated:

**[\*]** - [any number of times including zero]  
**[+]** - [any number of times, but at least once]  
**[?]** - [zero or one times only]  
**[{n}]** - [exactly n times]  
**[{n,}]** - [at least **n** times with no upper limit]  
**[{n,m}]** - [between **n** and **m** times]

You are free to copy paste it, remaster or anything else. We all just have to come up with a good RES Guide.

---

<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: [June 24, 2018, 1:27pm UTC](https://community.mp3tag.de/t/regular-expression-syntax-edition-in-progress/42020/2 "2018-06-24T13:27:09Z")

</div>

Maybe this should be moved to:

> [@Regular Expressions](https://community.mp3tag.de/t/regular-expressions/521):
>
> This topic collects some useful regular expressions. If you created a regular expression which solves a common task, please post it here and give a short description what it is supposed to do. These regular expressions can be used with the action type Replace with regular expression. Please look at [FAQ: How do I create a new action?](https://community.mp3tag.de/t/967/1) to learn more about actions in Mp3tag. Important: The regular expressions are user-contributed solutions of individual tasks. Test with a copy of your files first…

and / or combined with

> **[Replace with Regular Expression – Mp3tag Documentation](https://docs.mp3tag.de/actions/replace-regexp/)**
>
> Documentation on the Replace with Regular Expression action type that can be performed as Quick Action or as reusable workflow from Action Groups. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

### Author: ![LaurenBacall](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/35a633/32.png) [@LaurenBacall](https://community.mp3tag.de/u/LaurenBacall)
#### Post date: [June 24, 2018, 1:52pm UTC](https://community.mp3tag.de/t/regular-expression-syntax-edition-in-progress/42020/3 "2018-06-24T13:52:10Z")

</div>

> [@Alex5](#):
>
> All **characters** are **literals** except **[.] [|] [\*] [?] [+] [(] [)] [{] [}] [[] [] ] [^] [$]**.  
> These characters are literals when preceded by a **[\]**.

For legibility sake such characters/examples might be better being formatted as inline code tags by wrapping each with single backticks (a feature of Markdown).

Eg: `.` `|` `*` `?` `+` `(` `)` `{` `}` `[` `]` `^` `$`

---

<div class="post-metadata">

### Author: ![Alex5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@Alex5](https://community.mp3tag.de/u/Alex5)
#### Post date: [June 24, 2018, 2:10pm UTC](https://community.mp3tag.de/t/regular-expression-syntax-edition-in-progress/42020/4 "2018-06-24T14:10:35Z")

</div>

good idea thx (20 characters needed wtf)
