A Sticky Suggestion

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

A Sticky Suggestion

Postby bearson » Sun Jan 29, 2006 12:44 am

How's about compiling some of the common RE's in one sticky post? Probably would save a lot of needless questions. I'd expect the bulk of users are trying to filter the same sorts of things, anyway. I'd think you could cover most of the territory with a dozen or so.
User avatar
bearson
Occasional Contributor
Occasional Contributor
 
Posts: 12
Joined: Thu Mar 21, 2002 5:01 pm

Postby ozzii » Tue Mar 14, 2006 6:49 am

I try to do this filter ^[Re:]
but this doesn't work.
Can someone help me too :?:
ozzii
Seasoned User
Seasoned User
 
Posts: 410
Joined: Thu Feb 23, 2006 6:10 pm
Location: France

Registered Newsbin User since: 02/23/06

Postby ozzii » Tue Mar 14, 2006 6:52 am

I try ^Re: and this work :wink:
ozzii
Seasoned User
Seasoned User
 
Posts: 410
Joined: Thu Feb 23, 2006 6:10 pm
Location: France

Registered Newsbin User since: 02/23/06

Postby bobkoure » Mon Apr 10, 2006 8:32 am

I think perhaps bearson meant "Regular Expression" by RE.
bobkoure
 

Postby Quade » Mon Apr 10, 2006 9:48 am

I think it's a good idea.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44972
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby ceyko » Mon Mar 19, 2007 1:41 am

mmeeeee toooo. I was used to how to filter in 4.x, but it seems different here. Has me all confused.
ceyko
Occasional Contributor
Occasional Contributor
 
Posts: 15
Joined: Wed May 14, 2003 6:19 am

Registered Newsbin User since: 04/26/03

Postby itimpi » Mon Mar 19, 2007 4:18 am

ceyko wrote:mmeeeee toooo. I was used to how to filter in 4.x, but it seems different here. Has me all confused.

Filter syntax has not changed between 4.x and the 5 series, so not sure why it should be causing you problems.
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

Re: A Sticky Suggestion

Postby bobkoure » Sun Mar 25, 2007 11:39 pm

bearson wrote: I'd expect the bulk of users are trying to filter the same sorts of things, anyway. I'd think you could cover most of the territory with a dozen or so.

So... come up with a suggested 12 things... (I don't mean the regex expressions - just the 12 things that the bulk of users are trying to do)
bobkoure
 

Postby Quade » Mon Mar 26, 2007 12:51 am

Yeah... Problem is we can't be to detailed here on the site because Dex and I are paranoid.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44972
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby bobkoure » Mon Mar 26, 2007 10:25 am

Yeah - but I didn't mean as specific as that.
For instance, I'd guess the most useful thing for regex newbies is just knowing that '.', '*', and '?' don't do what you think.
And the second most useful thing is '\b'.
So let me add that one, in a semi-generic way:

If you are looking through a newsgroup and you want to find (either for inclusion or exclusion) a short word that's often "buried" in other words, use the "word boundary" marker '\b'
For instance, if you're looking for the string "no" then filtering for just that gets you
no
as well as
_no_
nowhere
nothing
nottingham
noblese
north
etc
However, filtering for "\bno\b" gets you
no
no6
_no_
- but the words containing "no" are gone.
bobkoure
 


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests