Tips on writing regular expressions for searching the post list
Moderators: Quade, dexter
by thalor » Wed Jul 02, 2014 3:04 pm
I'm sure this has been posted before but I'm not quite sure what to search for. I am looking for a way to filter out any posts that have a either a 5 or 6 digit number in the subject.
Example:
Spam Post spam.jpg 123456
Spam Post spam2.jpg 645322
They appears to be random numbers. At any rate how would one eliminate those?
Thanks in advance.
-
thalor
- n00b
-
- Posts: 1
- Joined: Wed Jul 02, 2014 2:51 pm
Registered Newsbin User since: 05/26/14
by Quade » Wed Jul 02, 2014 5:09 pm
[.]jpg.*[0-9]{5,6}
If you always want it to be
"...jpg[sp]<number>" then
"[.]jpg\s[0-9]{5,6}"
Which means "dot followed by "jpg" followed by a space, followed by 5 or 6 numbers from 0-9".
Type this into the find box and only matches should be display in the listings. Don't type in the quotes.
-
Quade
- Eternal n00b
-
- Posts: 45003
- Joined: Sat May 19, 2001 12:41 am
- Location: Virginia, US
Registered Newsbin User since: 10/24/97
-
Return to Regular Expressions
Who is online
Users browsing this forum: No registered users and 4 guests