I have a string something like “[aaa][vad][adf]”, i would like to use regex to capture the data in[], and chars in [] can be char and number and no length limit. I am regex noob, can anyone help me on this?
Thanks.
I have a string something like [aaa][vad][adf], i would like to use regex to
Share
You can try something like this:
This outputs:
The regular expression
\[([^\]]*)\]matches zero or more occurrences of a character that isn’t the]character and which is between a pair of square brackets ([and])