^[0-9a-f] also triggers on Upper case?

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

^[0-9a-f] also triggers on Upper case?

Postby Uncle_Guido » Thu Jan 14, 2021 11:05 am

I'm trying to block headers that start with a digit or a lower case a-f.
But when i try this: ^[0-9a-f] it also rejects Upper case A-F.
What am i doing wrong?
Thx, Uncle Guido
Uncle_Guido
n00b
n00b
 
Posts: 2
Joined: Sun Jan 10, 2021 5:10 pm

Registered Newsbin User since: 01/07/21

Re: ^[0-9a-f] also triggers on Upper case?

Postby Quade » Thu Jan 14, 2021 11:36 am

Yeah the RE engine is set to "caseless".

If you're trying to filter obscured posts, setting a length helps. I use

"[0-9-a-z]{32}" to require it to be at least 32 obscured letters with no spaces.
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


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests