22 Votes

Rewrite Text File: Add Points between arbitrary Numbers (010516 -> 01.05.16)

Question by Mail Request | 2016-04-08 at 17:15

I have a text document in which the following expression is appearing for multiple times:

[OZ]010516[end]

The numbers can vary and are always different. Is it possible to search for such an expression using the TextConverter in order to write a point after the second and the fourth character? The result should be as follows:

[OZ]01.05.16[end]

Do I need the Basic or the Pro Version for this task?

ReplyPositiveNegative
2Best Answer2 Votes

You can do that using regular expressions. Just use the function "Text > Replace" in the TextConverter and apply the following regular expressions.

Search for:

\[OZ\]([0-9]{2})([0-9]{2})([0-9]{2})\[end\]

Replace by:

[OZ]$1.$2.$3[end]

Do not forget to enable the option "Interpret as Regular Expression" below the field.

This function can also be performed using the Basic version of the Text Converter. You only need the Pro version if you want to edit more than 3 files at the same time.

I hope I could help you.
Last update on 2022-11-24 | Created on 2016-04-08

ReplyPositive Negative
Reply

Related Topics

Rename File to its Folder Name

Tutorial | 0 Comments

PHP: File Download Script

Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.