Formatting
Line numbers in a paste are either missing or in the way. Add, which is what this page opens on, prefixes each line with its number, a period, and a space. “Odd socks in the dryer.” becomes “1. Odd socks in the dryer.” Two lines, “x” and “y”, become “1. x” and “2. y”. The first line number opens at 1. Set it to 3 and the same two lines are “3. x” and “4. y”. The format is that period and space. There is no custom pattern such as a bracket or a colon.
Strip removes a leading run of spaces or tabs, a number, an optional “.” or “)”, and the following whitespace. “1. Odd socks” and “2. in the dryer.” go back to the two lines without numbers. A line that does not start that way is left alone. The number in “row10” stays, because it is not a prefix in that shape.
Add then strip is a round trip when every line got the “N. ” prefix and nothing else looked like one. A line that already began with “1. ” will gain another number if you add again. Strip first if the paste is already numbered.
Odd socks in the dryer. Action add, first line number 1.
1. Odd socks in the dryer. The prefix is the number, a period, and a space. The sentence is unchanged after that.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
“1. Odd socks in the dryer.” The prefix is the number, a period, and a space.
No. Add always writes “N. ” with a period and a space. Strip accepts either a period or a closing parenthesis after the digits.
Set the first line number to 3. The next line is 4. The field is an integer from 0 upward.
No. Strip looks for a number at the start of the line, optional punctuation, and whitespace. Digits in the middle of a word stay.
You get “1. 1. ” in front of the text. Strip once to peel a single prefix.