I must be dense

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

I must be dense

Postby PJD » Sat Nov 22, 2003 2:02 am

:?: I've tried every permutation I can think of, read the help file and looked at the forums but I still can't figure out why this doesn't work.
There are frequent files named 40.jpg, 38.jpg, etc. Basically, two numbers and .jpg. I want to filter them out but I seem to be unable to do so.
I've tried every combination I can think of. What is the proper expression?
Thanks,

PJD
PJD
n00b
n00b
 
Posts: 8
Joined: Tue Jul 22, 2003 2:34 pm
Location: USA

Registered Newsbin User since: 04/16/03

Postby Quade » Sat Nov 22, 2003 2:43 am

"[ ][0-9][0-9][.]jpg"

Don't use the quotes. There's a space between the first two brackets. It's possible these files are generated inside Newsbin if it can't find the real filename.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby PJD » Sun Nov 23, 2003 2:01 am

Quade,
Thanks for the quick reply.
I tried "[ ][0-9][0-9][.]jpg" (without the quotes, of course!) but it didn't work. I'm wondering if I really need the leading [ ]. The filenames actually begin with the number. I'm pretty sure I already tried it by I'm going to try "[0-9][0-9][.]jpg" and see if that works.
More later,
Phil
PJD
n00b
n00b
 
Posts: 8
Joined: Tue Jul 22, 2003 2:34 pm
Location: USA

Registered Newsbin User since: 04/16/03

Must be dense

Postby PJD » Mon Nov 24, 2003 12:03 pm

Neither expression worked. I continue to get these jpgs. Guess I'll live with them. It's odd, I would like to know where they are coming from though.
PJD
n00b
n00b
 
Posts: 8
Joined: Tue Jul 22, 2003 2:34 pm
Location: USA

Registered Newsbin User since: 04/16/03

Postby Quade » Mon Nov 24, 2003 12:14 pm

Email me a group and subject and I'll look at it.

tech_support@newsbin.com
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby boogeeman » Sun Jan 04, 2004 7:17 pm

try 38\.jpg
boogeeman
Occasional Contributor
Occasional Contributor
 
Posts: 20
Joined: Fri Jun 07, 2002 5:56 pm

Postby boogeeman » Sun Jan 04, 2004 7:18 pm

[0-9][0-9]\.jpg
boogeeman
Occasional Contributor
Occasional Contributor
 
Posts: 20
Joined: Fri Jun 07, 2002 5:56 pm

Postby boogeeman » Sun Jan 04, 2004 7:28 pm

doh....
1 more try here
[^][0-9][0-8]\.jpg
boogeeman
Occasional Contributor
Occasional Contributor
 
Posts: 20
Joined: Fri Jun 07, 2002 5:56 pm


Return to Regular Expressions

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests