Jump to content

Recommended Posts

Posted (edited)

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
Posted

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+

Posted (edited)

then you need to develop the expression I provided until it does I guess.

regexp doesn't delete anything, it matches things

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Posted
7 hours ago, youtuber said:

I would like to delete everything that has all 7 digits

Apparently you mean "characters" not "digits" (which in regex are numbers only)

So I suggest   "^.{7}$"  which matches 7 chars exactly

Posted (edited)
18 minutes ago, Danp2 said:

This seems to work for me --

^(.){0,7}\r\n
^.{1,7}$\r\n
or
^.{0,7}$\r\n

 

@Danp2  @FrancescoDiMuro Thanks These two work great :)

Edit Note: Which one do you recommend? I have many tests to find a bug.

Edited by youtuber

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
  • Recently Browsing   0 members

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