What header field characters does the filter work on?

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

What header field characters does the filter work on?

Postby optiman » Sun Nov 02, 2008 8:42 pm

That latest beta is giving me problems, it broke my filter "ext\ \ [a-z]+"

So I'm trying to find other ways to filter. Does the filter look at the Subject line as displayed in Newsbin or the subject line as seen in the ACTUAL header line? The ACTUAL "Subject: blah blah" line is different. It often contains extra characters like "(1/1)" inserted. The filter usually ignores the extra characters in the Subject: real header.

So-- what is the actual set of characters the filter is parsed against?
Thanks!
User avatar
optiman
Seasoned User
Seasoned User
 
Posts: 251
Joined: Tue Aug 05, 2003 1:06 am

Registered Newsbin User since: 12/13/03

Postby itimpi » Sun Nov 02, 2008 8:49 pm

I do not think that escaping spaces is working at the moment - you should try /s or [ ] instead.
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12607
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

Postby Quade » Sun Nov 02, 2008 9:26 pm

I don't think [ ] works either. No spaces are currently permitted in the search string. "/s" is how you want to represent spaces for now.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby optiman » Mon Nov 03, 2008 2:11 am

I tried "/s", "\s", [ ]-- nothing seems to match spaces now. Good to know I wasn't imagining things though!
User avatar
optiman
Seasoned User
Seasoned User
 
Posts: 251
Joined: Tue Aug 05, 2003 1:06 am

Registered Newsbin User since: 12/13/03

Postby Quade » Mon Nov 03, 2008 2:59 am

\s works fine for me. It means one space though.

"cpie\s\s2" for example.
"cpie\s+2" works too.

11-02-08 CPie 21 of 23 - <file>

Matched this. 2 spaces between cpie and the 2
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby bobkoure » Sat Nov 07, 2009 12:36 pm

Is \s "space" or "whitespace"? The standard is "whitespace", but I've seen some regex engines only match "space"...
bobkoure
 


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 1 guest