Can anyone assist in providing a Regex pattern to find letters between brackets? I.E:
[A]
or
[AAA]
or
[BAB]
The string I’m searching for could be something like this:
([A] * [B] + [AAA])
From that I’d like to be able to get the A, B, AAA out of the string. The letters I’m searching for will always be between square brackets.
Use this regex:
the matches are in bold:
You could use it like: