http://www.perlmonks.org?node_id=484316


in reply to Re: A refactoring trap
in thread A refactoring trap

On the off chance that you really use your "potentialy confusing" regex, I will comment that it seems a little inconsistent to me. Can you tell me what it does (including what becomes $1) for each of: "[ x]", "[ ]", and "[]"? Is it what you wanted it to do?