1 []*] # What about this?! valid
2 [:*096] # invalid: 096 isn't a valid octal number
3 a [:*0] # as many colons as string1 was long (not to be confused
4 # with a character class)
7 [=]=] # valid: equivalence class containing ']'
8 [-a # valid, assuming `[' is before 'a' in collating sequence
9 -] # valid, assuming ` ' is before ']' in collating sequence
10 --] # valid, assuming `-' is before ']' in collating sequence
12 [\0-\377]# valid, (but brackets will be mapped to corresponding chars
14 abcde[:* # valid, but none of the characters is considered special
15 abc xyzdef # Should this (str2 longer than str1) evoke a warning?
16 # Probably so if we're only translating, but if also deleting or
17 # squeezing this makes sense.
18 abcdef : # Map abcdef all to `:', as if str2 had been [:*]