News for hackers. Stuff that matters.
Re:GitHub under ongoing DDoS attack by Toenex on Sunday March 29, 2015 @06:46AM (#9284427)
The internet is how we maintain dialogue between peoples when our Governments behave like posturing (arse|ass)+holes. The worse a Government behaves the more (not less) internets the country should receive.
Re:GitHub under ongoing DDoS attack by commentereleven on Sunday March 29, 2015 @07:32AM (#9284509)
I think you meant "(arse|ass)?holes".
Re:GitHub under ongoing DDoS attack by oneeyedpigeon on Sunday March 29, 2015 @06:52AM (#9284440)
"arseassarseholes"?!
Re:GitHub under ongoing DDoS attack by ColinWright on Sunday March 29, 2015 @07:00AM (#9284453)
Taking your question at face value, some people say "arseholes", some people say "assholes", and some people just say "holes". We can factor out the "holes" to get that some people say "arse", some people say "ass", and some say nothing extra. We get alternation in regular expressions by separating them with a vertical bar, so we have a regular expression:

    arse | ass
That's optional, so we have the regular expression:

    (arse|ass)+
Put back the "holes" and we get the regular expression:

    (arse|ass)+holes
Clear?
Re:GitHub under ongoing DDoS attack by teddyh on Sunday March 29, 2015 @07:07AM (#9284469)
Taking your confusion at face value, what you should have done is to use a question mark ‘?’ instead of a plus sign ‘+’. Otherwise, the string which oneeyedpigeon posted also matches your regexp.
Re:GitHub under ongoing DDoS attack by ColinWright on Sunday March 29, 2015 @07:14AM (#9284484)
Hah! That explains it! Yes, the "+" usually means "1 or more" rather than the "optional" which I assumed. I rarely use either, because in my computing history I've used RexExp engines that didn't use those symbols consistently.

I'll leave my comment there as a testament to writing from memory and experience, rather than taking the time to check modern standards, and how things might have changed.

Thank you.

Re:GitHub under ongoing DDoS attack by yen223 on Sunday March 29, 2015 @08:00AM (#9284561)
Now we have 2 problems.
Re:GitHub under ongoing DDoS attack by chucksmash on Sunday March 29, 2015 @09:11AM (#9284686)
(arse|ass){0,1}holes

Is how i would write it, +/- a case insensitive flag.

Re:GitHub under ongoing DDoS attack by coderdude on Sunday March 29, 2015 @06:59AM (#9284450)