I have a string, say:
Product Description [White]
I want to extract anything inside the brackets (in this case White) from that str
White
(.) only matches a single character, but you want to match multiple characters in there.
(.)
So you need (.+)
(.+)
substring('Product Description [White]' from '\[(.+)\]')