As for my previous question , I have a line in the following format:
this {is} a [sample] string with [some] {special} words. [another one]
What is a regular expression for extracting words in square brackets or , i.e.
{is} [sample] [some] {special} [another one]
Note. In my case, using brackets cannot be nested. I would also like to keep enclosing characters so that I can distinguish them when processing the results.
regex
ObiWanKenobi
source share