nappaji: this syntax is used in awk and perl, not in vi or sed
nixon: you are very close to solution
append a star '*' after the first OR second ']'
to repeat NULL or INFINITE times the first OR second match
so this lines are equivalent:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.