Tips on writing regular expressions for searching the post list
Moderators: Quade, dexter
by 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
-
- Posts: 2
- Joined: Sun Jan 10, 2021 5:10 pm
Registered Newsbin User since: 01/07/21
by 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.
-
Quade
- Eternal n00b
-
- Posts: 44999
- 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 17 guests