# Using TAG in actions/combining actions for different tags

**URL:** https://community.mp3tag.de/t/using-tag-in-actions-combining-actions-for-different-tags/42419
**Category:** Support
**Created:** [July 21, 2018, 8:05am UTC](https://community.mp3tag.de/t/using-tag-in-actions-combining-actions-for-different-tags/42419 "2018-07-21T08:05:06Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [July 23, 2018, 8:47pm UTC](https://community.mp3tag.de/t/using-tag-in-actions-combining-actions-for-different-tags/42419/7 "2018-07-23T20:47:19Z")

</div>

I think I read somewhere that it is recommended to replace a space within any regex with something else to make it clear that it is intended to be a space, can you please tell me what that would be? I can't remember or find anything related.

Is it `\s?`? For example:

```
[#6]
T=2
! Remove Album=
F=ALBUM
1= (Album)
2=
3=0

```

to

```
[#6]
T=2
! Remove Album=
F=ALBUM
1=\s?(Album)
2=
3=0

```

If so, is this correct as an example of what you said to replace the following?

```
[#6]
T=2
! Remove Album=
F=ALBUM
1= (Album)
2=
3=0

[#7]
T=2
! Remove Album=
F=_DIRECTORY
1= (Album)
2=
3=0

[#8]
T=2
! Remove Album=
F=_FILENAME
1= (Album)
2=
3=0

```

Guess Values  
Source format:  
`$replace('%ALBUM% === %_DIRECTORY% === %_FILENAME%','\s?\(Album\)')`  
Guessing pattern:  
`%ALBUM% === %_DIRECTORY% === %_FILENAME%`

```
[#0]
T=7
F=$replace('%ALBUM% \u003d\u003d\u003d %_DIRECTORY% \u003d\u003d\u003d %_FILENAME%','\\s?\\(Album\\)')
1=%ALBUM% \u003d\u003d\u003d %_DIRECTORY% \u003d\u003d\u003d %_FILENAME%

```

Also, in an mp3 file, exactly which fields are affected by actions involving `_TAG`?

---

_[View the full topic](https://community.mp3tag.de/t/using-tag-in-actions-combining-actions-for-different-tags/42419)._
