Tips on writing regular expressions for searching the post list
Moderators: Quade, dexter
by Valmont » Mon Jan 05, 2015 5:34 pm
Hi ,
How do I make a regex to match at least 5 consonants in a row,? It's for the ctrl+W poster lockout. T.
-
Valmont
- Active Participant
-
- Posts: 63
- Joined: Wed Aug 09, 2006 2:51 pm
Registered Newsbin User since: 06/14/09
by Moondawgie » Sat Jan 10, 2015 4:12 am
[bcdfghjklmnpqrstvwxz][bcdfghjklmnpqrstvwxz][bcdfghjklmnpqrstvwxz][bcdfghjklmnpqrstvwxz][bcdfghjklmnpqrstvwxz]
MS Windows 10 Pro 64-Bit I- ASUS P8Z77-V LE; Intel i7-3770K 3.5 GHz; 16.0GB DDR3; 600/20 Mbps cable internet.
-
Moondawgie
- Seasoned User
-
- Posts: 425
- Joined: Mon Aug 13, 2001 5:17 pm
Registered Newsbin User since: 05/17/03
by Valmont » Sat Jan 10, 2015 5:41 am
Awesome, thanks.
-
Valmont
- Active Participant
-
- Posts: 63
- Joined: Wed Aug 09, 2006 2:51 pm
Registered Newsbin User since: 06/14/09
by Quade » Sat Jan 10, 2015 9:11 am
Yeah that's good. A shortcut would be:
[bcdfghjklmnpqrstvwxz]{5}
You can use the {number} to set a range of matchs too. {6,9} for instance.
I was thinking about negating vowels and bogged down. This is better.
-
Quade
- Eternal n00b
-
- Posts: 44999
- Joined: Sat May 19, 2001 12:41 am
- Location: Virginia, US
Registered Newsbin User since: 10/24/97
-
by Moondawgie » Sat Jan 10, 2015 12:37 pm
Thanks, Quade.
MS Windows 10 Pro 64-Bit I- ASUS P8Z77-V LE; Intel i7-3770K 3.5 GHz; 16.0GB DDR3; 600/20 Mbps cable internet.
-
Moondawgie
- Seasoned User
-
- Posts: 425
- Joined: Mon Aug 13, 2001 5:17 pm
Registered Newsbin User since: 05/17/03
by Valmont » Sat Jan 10, 2015 1:03 pm
Quade wrote:Yeah that's good. A shortcut would be:
[bcdfghjklmnpqrstvwxz]{5}
You can use the {number} to set a range of matchs too. {6,9} for instance.
I was thinking about negating vowels and bogged down. This is better.
Appreciated, thanks.
-
Valmont
- Active Participant
-
- Posts: 63
- Joined: Wed Aug 09, 2006 2:51 pm
Registered Newsbin User since: 06/14/09
Return to Regular Expressions
Who is online
Users browsing this forum: No registered users and 18 guests