the simple ones please..

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

the simple ones please..

Postby Hirez » Tue Feb 07, 2006 9:21 pm

ok, I have read these threads soo many times, and I really cant work the simplest one out...

AND... OR..

If I want to find for example. the words "CSI" AND "proper" in the title (without being written as ONE word) what would the expression be??

and OR?

is that simply CSI|proper would bring any topic with csi OR proper in it?

THanks, its just really hard sorry..
Hirez
Seasoned User
Seasoned User
 
Posts: 204
Joined: Sun Dec 07, 2003 1:21 pm
Location: EU

Registered Newsbin User since: 02/14/04

Postby DThor » Tue Feb 07, 2006 10:48 pm

Correct..."OR". You can always experiment with a small group.

You shouldn't feel badly that it's non-intuitive to you - it's a very powerful and potentially dense syntax. Frankly, for anything more than simple searching, it's overkill. The reason Regex is being used is that it's also used internally in the program. Adding it to the userset of tools is comparitively easy and efficient.

DT
V6 Troubleshooting FAQ . V6 docs. Usenet info at Usenet Tools. Thanks!
User avatar
DThor
Elite NewsBin User
Elite NewsBin User
 
Posts: 5943
Joined: Mon Jul 01, 2002 9:50 am

Registered Newsbin User since: 04/01/03

Postby FrizzleFry » Tue Feb 07, 2006 11:36 pm

csi.*proper

. match any character * zero or more times
User avatar
FrizzleFry
Seasoned User
Seasoned User
 
Posts: 709
Joined: Sun Oct 09, 2005 12:04 am

Registered Newsbin User since: 05/04/03

Postby Smite » Wed Feb 08, 2006 1:00 am

Please read the FAQ before asking any questions.
If you're new to newsgroups, and the files on them, you can find a very helpful guide here.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03

Postby Hirez » Sun Feb 12, 2006 11:39 am

thanks. A simple short answer, which answered my questions :)

anywho, maybe I am blind, but it would be a good idea to create a simple guide, a cheatsheet BUT which is writter for Newsbin.
Example, if you want to find XXX name and RAR series use THIS
if you want to only find images use this
This but NOT this. etc.

I mean 10 different expressions would probably save most of the work for a lot of ppl. hehe I tried looking at that CHEATSHEET and its unfortunately not that easy to combine IMO.
Hirez
Seasoned User
Seasoned User
 
Posts: 204
Joined: Sun Dec 07, 2003 1:21 pm
Location: EU

Registered Newsbin User since: 02/14/04


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests