Examples
[!-D] -> [!-Da-d]
Input
[!-D]Expected answer
[!-Da-d][[-}] -> [[-}A-Z]
Input
[[-}]Expected answer
[[-}A-Z][%-^] -> [%-^a-z]
Input
[%-^]Expected answer
[%-^a-z][^-j] -> [A-J^-j]
Input
[^-j]Expected answer
[A-J^-j][<-j] -> [<-z]
Input
[<-j]Expected answer
[<-z][a-z] -> [A-Za-z]
Input
[a-z]Expected answer
[A-Za-z][A-Z] -> [A-Za-z]
Input
[A-Z]Expected answer
[A-Za-z][b-}] -> [b-}B-Z]
Input
[b-}]Expected answer
[b-}B-Z][H-d] -> [A-DH-dh-z]
Input
[H-d]Expected answer
[A-DH-dh-z][K-`] -> [K-`k-z]
Input
[K-`]Expected answer
[K-`k-z]e.g. Mozilla/[0-9].[0-9] .* becomes [mM][oO][zZ][iI][lL][lL][aA]/[0-9].[0-9] .*
Format reference: To Case Insensitive Regex background and specification