s/.*\|(.*?]]).*/[[$1/g