Delete numbers in Notepad ++

I have a text file with

245. asdasd 45. asdasd 42. gfhfgh 5353. sdfsdf 

want to delete all numbers in front of it. try to find and replace [0-9] already. did not work:/

Thanks for the help!

+7
source share
7 answers

Ctrl + F - Replace - Search Mode: Regular Expression

Find what: [0-9] +

Replace with:

// Replace With An Empty

+39
source

Ctrl-H - shows the replacement.

Make sure "regex" is enabled.

Use ^[0-9]+

Note begging ^ is used to mark the beginning of a line. Delete it if you want to delete all numbers

+9
source

use a search in RegEx (should be ^\d+ for numbers with more than one digit):

enter image description here

+2
source

On the tab switcher replace regular expressions; Find ^\d+\.\s and leave the "Replace empty" box.

(Matches the beginning of a line, any number, period, space)

+2
source

You should try to use this regular expression to remove what you want in the replace dialog:

 ^[0-9]*\.\ (.*) 

And replace with:

 \1 
+2
source

To search for numbers:

  • Find what: [[: d:]]
  • Select: o Regular Expression
+2
source

To remove only β€œdotted line numbers,” use [0-9] +.

0
source

All Articles