Page 1 of 1

5 consonants or more

PostPosted: Mon Jan 05, 2015 5:34 pm
by Valmont
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.

Re: 5 consonants or more

PostPosted: Sat Jan 10, 2015 4:12 am
by Moondawgie
[bcdfghjklmnpqrstvwxz][bcdfghjklmnpqrstvwxz][bcdfghjklmnpqrstvwxz][bcdfghjklmnpqrstvwxz][bcdfghjklmnpqrstvwxz]

Re: 5 consonants or more

PostPosted: Sat Jan 10, 2015 5:41 am
by Valmont
Awesome, thanks.

Re: 5 consonants or more

PostPosted: Sat Jan 10, 2015 9:11 am
by Quade
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.

Re: 5 consonants or more

PostPosted: Sat Jan 10, 2015 12:37 pm
by Moondawgie
:D Thanks, Quade.

Re: 5 consonants or more

PostPosted: Sat Jan 10, 2015 1:03 pm
by Valmont
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.