# Cut After \<specified character\> (also Cut Before)

**URL:** <https://community.mp3tag.de/t/cut-after-specified-character-also-cut-before/58528>\
**Category:** Support\
**Created:** [September 20, 2022, 2:35am UTC](https://community.mp3tag.de/t/cut-after-specified-character-also-cut-before/58528 "2022-09-20T02:35:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@scott](https://community.mp3tag.de/u/scott)\
**Post date:** [September 20, 2022, 2:35am UTC](https://community.mp3tag.de/t/cut-after-specified-character-also-cut-before/58528/1 "2022-09-20T02:35:42Z")

</div>

Hi,

How do I cut all characters after -

also,

How do I cut all characters before -

Thanks!

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [September 20, 2022, 5:41am UTC](https://community.mp3tag.de/t/cut-after-specified-character-also-cut-before/58528/2 "2022-09-20T05:41:01Z")

</div>

For after define an action of the type "Guess values":  
Source: `%Your tagfield%`  
Format String: `%Your Tagfield% - %dummy%`

and for before with the format string:  
`%dummy% - %Your Tagfield%`

The above is correct if you have a wihte space before and after the hyphen ( - ). If there are no white spaces you have to drop them in the format string  
You get a wrong result if there are more than 1 hyphens in the tagfield.

> **[Guess Values – Mp3tag Documentation](https://docs.mp3tag.de/actions/guess/)**
>
> Documentation on the Guess Value 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:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [October 20, 2022, 5:41am UTC](https://community.mp3tag.de/t/cut-after-specified-character-also-cut-before/58528/3 "2022-10-20T05:41:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
