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
![Active Participant Active Participant](./images/ranks/rank2.gif)
-
- 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; 500 Mbps cable internet.
-
![User avatar](./download/file.php?avatar=164_1553100145.jpg)
Moondawgie
- Seasoned User
![Seasoned User Seasoned User](./images/ranks/rank3.gif)
-
- Posts: 421
- 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
![Active Participant Active Participant](./images/ranks/rank2.gif)
-
- 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.
-
![User avatar](./download/file.php?avatar=5.jpg)
Quade
- Eternal n00b
![Eternal n00b Eternal n00b](./images/ranks/rank0.gif)
-
- Posts: 44890
- 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
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Thanks, Quade.
MS Windows 10 Pro 64-Bit I- ASUS P8Z77-V LE; Intel i7-3770K 3.5 GHz; 16.0GB DDR3; 500 Mbps cable internet.
-
![User avatar](./download/file.php?avatar=164_1553100145.jpg)
Moondawgie
- Seasoned User
![Seasoned User Seasoned User](./images/ranks/rank3.gif)
-
- Posts: 421
- 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
![Active Participant Active Participant](./images/ranks/rank2.gif)
-
- 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 2 guests