RegExp in multiline field
When using Mp3tag's regexp functionality how can it be realized to remove trailing CRLF sequence in a multi-line tag field without touching any other CRLF sequences in the text stream?
Symbolic text stream in multi-line field:
CRLFCRLFCRLF
Only the trailing CRLF sequence in the above example should be removed to become:
CRLFCRLF.
See following actionsgroup as an example:
Begin Actionsgroup TEST
Action #1
Actiontype 5: Format tag field
Field: TEST_1
Formatstring: ***$char(13)$char(10)$char(13)$char(10)***$char(13)$char(10)
Action #2
Actiontype 5: Format tag field
Field: TEST_2
Formatstring: $regexp(%TEST_1%,\r\n$,)
Action #3
Actiontype 5: Format tag field
Field: TEST_3
Formatstring: %TEST_1%
Action #4
Actiontype 4: Replace with regular expression
Field: TEST_3
Regular expression: \r\n$
Replace matches with:
End Actionsgroup TEST (4 Actions)
Action #2 and #4 give the same result value:
***$char(13)$char(10)***
It should be:
***$char(13)$char(10)$char(13)$char(10)***
But how?
DD.20080609.1740.CEST