Loading...
Items are delimited by single line break other.  
Pad number.   Skip empty.   Display only if options.   Place number left right of content.  

Tool: Number each line/item.

Purpose: Number each line of text. Enumerate items within a delimited list.
Instructions: Load working-text, select other delimiter* option if needed, enter prefix and/or suffix (if needed) into their appropriate fields and click "Number each line/item" button. Check "Pad number" to equalize number length by filling with leading zeros. (i.e. 001...010...100). Check "Skip empty" to skip numbering empty lines. Check only if checkbox to open only if matching controls. *See other delimiter example.
only if matching: only if matching will control tool operation based upon the only if text being contained or not contained within the working-text iterations within tool's function. For this tool only if will control whether or not a prefix/suffix will be applied to the line or delimited item. only if matching can contain a "regular expression" (regex) giving the ability to match multiple items.
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.
Regex examples: Be sure to check "Display only if options" and "Allow regex matching in only if field" for these examples to work.

Match if either ("a" or "b" or "c") are in line.

Working-text is:

abcd
xyz
acef


To match if either ("a" or "b" or "c") are within lines, check containing button, enter regex phrase a|b|c into "this text", click "Number each line/item" button and result will be:

1abcd
xyz
2acef


Check "not containing" button for inverse result.



Match if either ("a" and "b" and "c") are in line.

Working-text is:

abcd
xyz
acef


To match if either ("a" and "b" and "c") are within lines, check containing button, enter regex phrase (?=.*a)(?=.*b)(?=.*c) into "this text", click "Number each line/item" button and result will be:

1abcd
xyz
acef


Check "not containing" button for inverse result.



Other delimiter example:

Working-text is:

a,b,c,d

Click "other" button, enter delimiter , click "Number each line/item" button and result will be:

1a,2b,3c,4d