in reply to Re^5: Do nothing? or Do something important in a very obscure way?
in thread Do nothing? or Do something important in a very obscure way?

Actually, that's exactly what I thought it meant, hence the "Do nothing?" in the title.

I remember the days when I used to be obliged to put blocks of NOP's into my assembler subroutines (we used a ratio of 1::20 active instructions) to allow space for remedial patching of the executable, but I couldn't see why you would add them to a regex!


What's this about a "crooked mitre"? I'm good at woodwork!
  • Comment on Re: Re^5: Do nothing? or Do something important in a very obscure way?

Replies are listed 'Best First'.
Re^7: Do nothing? or Do something important in a very obscure way?
by Aristotle (Chancellor) on Aug 23, 2002 at 23:31 UTC
    There is no reason to be adding them to a regex. It is simply due to the way the double colon works that postfixing it to a nongreedy match turns the match into a NOP, which is what TheDamian was mentioning in the Exegesis.

    Makeshifts last the longest.