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


in reply to Re^2: Is there a more functional regex syntax?
in thread Is there a more functional regex syntax?

Thank, this is what I've been looking for!

It's not extremely pretty, but it should scale nicely for the general case of needing the result of a regex string extraction as a right-hand-side value.

PS: The regex suggested by tobyink above can make the single-line case much more readable: /(\d+)/g