REQ regex for subject line beginning with numbers

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

REQ regex for subject line beginning with numbers

Postby yungblud » Fri Nov 14, 2003 5:16 am

I would welcome it if someone could give me a regex to use in the filter. I want to be able to see only those subject lines which begin with a number.

Eg. "099 This is the first example"

Secondly, I would like to see only those subject lines which begin with a left square bracket followed by a number.

Eg. "[133/400] This is the second example"

Thank you for any help.
User avatar
yungblud
Seasoned User
Seasoned User
 
Posts: 168
Joined: Fri Sep 19, 2003 12:29 pm

Postby Quade » Fri Nov 14, 2003 12:14 pm

Maybe it's time to learn Regex? Dexter you still have a link to that Regex page?
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 Pyrohydra » Fri Nov 14, 2003 8:35 pm

User avatar
Pyrohydra
Elite NewsBin User
Elite NewsBin User
 
Posts: 2653
Joined: Fri Nov 15, 2002 3:26 am
Location: Ohio

Registered Newsbin User since: 03/27/03

Postby Quade » Fri Nov 14, 2003 11:54 pm

Thanks.
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

Re: REQ regex for subject line beginning with numbers

Postby Smite » Sat Nov 15, 2003 5:07 am

yungblud wrote:I would welcome it if someone could give me a regex to use in the filter. I want to be able to see only those subject lines which begin with a number.

Eg. "099 This is the first example"


^[0-9]

yungblud wrote:Secondly, I would like to see only those subject lines which begin with a left square bracket followed by a number.

Eg. "[133/400] This is the second example"

^\[[0-9]

It's really not hard to learn...
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 yungblud » Sat Nov 15, 2003 9:52 am

Quade wrote:Maybe it's time to learn Regex? Dexter you still have a link to that Regex page?


Some of the beginner's websites for regex which I have been to are truly mind-boggling!

The Newsbin link seems altogether more friendly.

Thanks. Iwill read through those pages.
User avatar
yungblud
Seasoned User
Seasoned User
 
Posts: 168
Joined: Fri Sep 19, 2003 12:29 pm


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 1 guest