I have this bash statement with perl regex:
echo $1 | perl -pe 's|(?:://).+?(?:/)|b|'
prints this:
httpbTesting/JS/displayName.js
from this:
http://php2-mindaugasb.c9.io/Testing/JS/displayName.js
I was expecting:
http://b/Testing/JS/displayName.js
Maybe I don't understand something about the non-capturing groups? I thought they are supposed to match, but not capture (like a positive lookahead and look behind combined). Am I mistaken?