ETEvoraTools
Text Formatting

Remove Line Numbers

Remove Line Numbers applies ^\s*\d+[.):\-]\s* to every line. It removes optional leading whitespace, one or more digits, one delimiter among ), ., :, or -, and optional following whitespace. It can therefore remove meaningful numeric prefixes such as dates or identifiers, but does not handle brackets, padded labels without those delimiters, roman numerals, nested numbering, or numbers without punctuation.

Runs locally — files stay on your device
Quick answer

Which delimiters are recognized?

) . : and -.

Prefix heuristics can remove real data

A regex cannot know whether '2026- report' is a line number or meaningful content.

How it works

CRLF is normalized; each line receives one anchored regex replacement; LF rejoins.

Key concepts

Anchored at line start

Numbers later in the line remain.

Whitespace included

Indentation before the number is also removed.

When to use it

  • Strip simple '1. ' list numbering.
  • Remove '42) ' or '7: ' prefixes.
  • Clean a reviewed numbered excerpt.

When not to use it

  • Do not run blindly on date/ID-leading data.
  • Do not expect roman or bracketed formats.
  • Do not expect multiple nested prefixes removed.

Worked examples

Period

Input
12. Item
Expected output
Item

Pattern matches.

Parenthesis

Input
3) Text
Expected output
Text

Leading spaces removed.

Date-like

Input
2026- roadmap
Expected output
roadmap

Potential false positive.

Common mistakes

Removing IDs

Numeric-dash prefixes match. Correction: Review input or use a stricter rule.

Expecting [1]

Brackets are unsupported. Correction: Use Find/Replace regex elsewhere.

Nested list

Only one prefix pass. Correction: Repeat deliberately or parse lists.

Best practices

  • Test on representative lines.
  • Keep source.
  • Use a domain-specific prefix pattern for important data.

Related operations and differences

Remove Extra Spaces

Choose Remove Extra Spaces when you need to collapse repeated spaces while preserving lines.; use Remove Line Numbers specifically for remove line numbers.

Split Text by Delimiter

Choose Split Text by Delimiter when you need to turn delimiter-separated text into lines.; use Remove Line Numbers specifically for remove line numbers.

Add Prefix to Every Line

Choose Add Prefix to Every Line when you need to add the same prefix before every line.; use Remove Line Numbers specifically for remove line numbers.

Add Suffix to Every Line

Choose Add Suffix to Every Line when you need to add the same suffix after every line.; use Remove Line Numbers specifically for remove line numbers.

Capitalize Every Word

Choose Capitalize Every Word when you need to capitalize the first character of every word.; use Remove Line Numbers specifically for remove line numbers.

Character Counter

Choose Character Counter when you need to count Unicode characters in text.; use Remove Line Numbers specifically for remove line numbers.

Limitations and privacy

  • One anchored decimal prefix with four delimiters; no preview/count, bracket/roman formats, nesting, configurable regex, semantic detection, or undo.

Text is transformed locally in this browser and is not uploaded by the tool.

Frequently asked questions

Is '1.' removed?

Yes.

Is '[1]' removed?

No.

Can dates be affected?

A numeric-hyphen prefix can be.

Are numbers inside text removed?

No.

References