before after Allow regex matching.
or every
characters.
Preserve full words
(word-wrap) approximately to the entered character count.
Case insensitive.
Tool:
Create/remove line breaks.
Purpose:
Create new or remove existing line breaks.
New line breaks can be created either before or after search string or upon a numeric character count.
Removed line breaks can be replaced by a string.
Instructions:
Load working-text, enter appropriate text into function's fields and click it's action button.
Examples:
Working-text is:
a
b
c
d
To remove line breaks and replace with "\n" enter \n into "and replace with" field and click "Remove line breaks" button to produce:
a\nb\nc\nd
Working-text is:
1.2.3.4.
To create line breaks after the ".", check the "after" radio button, enter . into "this text" field and click "Create line breaks" button to produce:
1.
2.
3.
4.
Working-text is:
a1a2a3a4a5
To create line breaks after "a" but only if "a" is followed by "2" or "4", check the "after" radio button, check the "Allow regex matching" checkbox*, enter a(?=b|c) into "this text" field and click "Create line breaks" button to produce:
a1a
2a3a
4a5
*Regex instructions:
A "regular expression" (regex) is a sequence of characters defines a search pattern within a matching action.
Within a regex phrase are literal and special characters of which the special characters define what actions are to be done.
Special characters []{}().*+?^=!:$\| will function as literal characters when escaped with a single backslash.
Use the "Enter literal find text to escape special characters" tool at page bottom to escape a mix of literal and special characters used as literals.