I only know the s/.../.../ variety. Haven't seen the "s[][]" variety yet.
They are the same, they just use different delimiters. You can choose which character(s) you use as a delimiter. If you use bracketing delimiters (eg. () or {} or [] or <>) then it can simplify the use of somethings. See the docs for the full skinny.
In reply to Re^3: How to match and transform a multiline pattern?
by BrowserUk
in thread How to match and transform a multiline pattern?
by nbhatia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |