in reply to Re^3: regex s/// using hash
in thread regex s/// using hash

oh, i understood what you mean!

so thinking about that, seems to me that the solution isn't working at all, unless some effort.

thanks

Oha

Replies are listed 'Best First'.
Re^5: regex s/// using hash
by ikegami (Patriarch) on Oct 16, 2007 at 14:06 UTC
    What solution isn't working?
      unless the effort of using our (or take care about how the RE is compiled), which is uncommon, the idea of suggesting /(\w)(?(?{$h{$1}})|($!))/$h{$1}/g; isn't working all the time.

      Oha