Given a line of text, you have to extract the bit of text enclosed within a pair of brackets. There will be at most one pair of brackets.
The input will contain a single line of string containing at most 50 characters.
Print the text enclosed within a pair of brackets. If no valid pair of brackets is found, leave the output empty.
Input | Output |
---|---|
The quick (brown fox jumps) over the lazy dog. | brown fox jumps |
Input | Output |
---|---|
Lorem ipsum dolor. |