What RegEx should I use to return parameter names wrapped within brackets in an expression?
- by burak ozdogan
Hi,
I have a set of expressions representing some formula with some parameters inside. Like:
"[parameter1] * [parameter2] * [multiplier]" and many others like this.
I want to use a regEx so that I can get a list of strings (List<string> ) which will have
[paramter1]
[paramter2]
[multiplier]
inside.
I am not using regular expressions so often; if you have already used something like this I would appreciate if you can share.
Thanks!