# Request: Option to disable global regular expressions

**URL:** https://community.mp3tag.de/t/request-option-to-disable-global-regular-expressions/44632
**Category:** General Discussion
**Created:** [February 22, 2019, 10:28pm UTC](https://community.mp3tag.de/t/request-option-to-disable-global-regular-expressions/44632 "2019-02-22T22:28:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BobSmith123](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/7ea924/32.png) [@BobSmith123](https://community.mp3tag.de/u/BobSmith123)
#### Post date: [February 22, 2019, 10:29pm UTC](https://community.mp3tag.de/t/request-option-to-disable-global-regular-expressions/44632/1 "2019-02-22T22:29:00Z")

</div>

Mp3tags has global regular expressions enabled by default (/g) I'm trying to run a regular expression ([.]) to remove the first period in a title, and replace it with a period and an added space..for example:

Symphony No.1 in C Major, Op.21 - I. Adagio Molto - Allegro Con Brio

However, this won't work because it will select both periods which is not intended. Can this be changed?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 22, 2019, 11:11pm UTC](https://community.mp3tag.de/t/request-option-to-disable-global-regular-expressions/44632/2 "2019-02-22T23:11:17Z")

</div>

> [@BobSmith123](#):
>
> Symphony No.1 in C Major, Op.21 - I. Adagio Molto - Allegro Con Brio

Check out the help and the section about non-greedy repeats

> **[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.

`$regexp('Symphony No.1 in C Major, Op.21 - I. Adagio Molto - Allegro Con Brio',(.*?\.)(.*),$1 $2)`  
leads to  
Symphony No. 1 in C Major, Op.21 - I. Adagio Molto - Allegro Con Brio

This function already exists.

---

<div class="post-metadata">

### Author: ![BobSmith123](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/7ea924/32.png) [@BobSmith123](https://community.mp3tag.de/u/BobSmith123)
#### Post date: [February 23, 2019, 12:46am UTC](https://community.mp3tag.de/t/request-option-to-disable-global-regular-expressions/44632/3 "2019-02-23T00:46:36Z")

</div>

I didn't know I could write expressions outside of the 'Replace with regular expression'. Thank you!

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 23, 2019, 9:51am UTC](https://community.mp3tag.de/t/request-option-to-disable-global-regular-expressions/44632/4 "2019-02-23T09:51:02Z")

</div>

You could use "Replace with regular expressions"  
Search string: `(.*?\.)(.*)`  
Replace string: `$1 $2`

I tested it in the function Convert\>Tag-Tag which has a preview. You can use all the scripting functions in action of the type "Format value".
