What RegEx should I use to return parameter names wrapped within brackets in an expression?
Posted
by burak ozdogan
on Stack Overflow
See other posts from Stack Overflow
or by burak ozdogan
Published on 2010-03-14T12:35:41Z
Indexed on
2010/03/14
12:45 UTC
Read the original article
Hit count: 230
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!
© Stack Overflow or respective owner