Jump to content

Notepad++ 7 digit all digits, letters, alphanumeric delete regex?


Recommended Posts

I would like to delete everything that has all 7 digits in notepad ++ program.

Spoiler

157997928f57bb32c470b348ae19093c38433edf

123456
1234567
123456!
123456'
123456^
123456+
123456%
123456&
123456/
123456(
123456)
123456=
123456_
123456-
+123456

I don't want to be deleted sample
12345678
12345678+

 

Edited by youtuber
Link to comment
Share on other sites

No, just Notepad ++  Ctrl-H (Replace)
for example i want to delete 1,2,3,4,5,6,7 digit ve ones here
1
12
123
1234
12345
123456
1234567
123456!
123456'
123456^
123456+
123456%
123456&
123456/
123456(
123456)
123456=
123456_
123456-
+123456
!autoit
autoit+

Link to comment
Share on other sites

does this fit your bill

https://stackoverflow.com/questions/11797897/regular-expressions-match-exactly-7-or-9-digits

 

I modified it to work in Sublime Text to meet your specs.

 

(^\d{7}(?:\d{1})?$)

also this should work for Notepad

^(\d{7}(?:\d{1})?$)

 

that matches your strings

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...