Mar 5, 2010, 5:05 AM
Post #4 of 4
Re: [abcd1234] finding two identical letters in a row
[In reply to]
is there anything simpler.. just a one lined expression?
Aside from the fact that you can write *every* Perl expression in one line, the regexp in the example posted *was* written in one line.
Honestly, I think this solution is already pretty compact. I understand that regexpes are hard for programming novices, so instead of asking for something simpler, you should study the example and then ask a concrete question, if you don't understand something.