capturing in ${VAR//(*(\/)(+([^\/]))?(\/)/_${BASH_REMATCH[1]}_}
From:
Linda Walsh
Subject:
capturing in ${VAR//(*(\/)(+([^\/]))?(\/)/_${BASH_REMATCH[1]}_}
Date:
Sun, 07 Feb 2016 23:47:23 -0800
User-agent:
Thunderbird
When you are doing a var expansion using the
replacement format ${VAR//./.}, is there some way to
put parens around some part of the expression and reference
them as in the [[V~re]] RE-matches?
Couldn't find anything in the manpage, but I could easily
have missed something...?
Thanks...