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?
Related Topics
How to Replace multiple Texts at the same Time
Tutorial | 0 Comments
Rename File to its Folder Name
Tutorial | 0 Comments
Lord's Prayer in 20 other Languages
Info | 0 Comments
PHP: File Download Script
Tutorial | 0 Comments
Rewrite Text Files with a fixed Line Length
Tutorial | 0 Comments
Website Performance: Deliver JavaScript and CSS files compressed to reduce loading times
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.
You can do that using regular expressions. Just use the function "Text > Replace" in the TextConverter and apply the following regular expressions.
Search for:
Replace by:
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