in reply to Call subroutines inside regexp, using backrefences as parameters
Is it possible to use perl subroutines inside regexp, using backreferences as parameters?Yes, and yes. But that's not what you actually want. Or do. You're using a subroutine call in the replacement part, which isn't a regexp.
And how to do that was already explained by moritz, nothing to add to his answer.
|
|---|