Remove brakets and special characters in string - Oracle : We have an input from user who provides source account ID and DB ID.

problem here is the input will be:
[222].[2]
i need to filter first [222] as source account id, second value in[2] as DBID.

Input: [222].[2] ([srcacct id].[database id])
we need to remove braces "[" and "." 

Output: Source Account id=222, DBID=2

