I'm translating an ugly formatted lang file of a plugin. It's really uncomfortable as it has no line breaks at all.
How do I enter \n
after }
and most of all after
"text":"text",
Example of what the code looks like:
{"dir":"ltr","editor":"Rich Text Editor","common":{".........
I'm new to regex and find it difficult to learn these operators :D
To me this looks like JSON. If this is the case, simply:
Given this string:
It yields:
This approach should provide you with a decent indentation as well, which should help you better make sense of what you have. Although replacing with a regular expression will work, the output could be slightly messy.