Q
quest
I have a regular expression :
Match match = Regex.Match(line, @"(?<name>.*)\((?<id>\S+)\)");
It is able to parse the text with the following syntax:
data(Hello)
type(integer)
My regular expression failed when the following is encountered:
data(Hello world)
How do I modify my regular expression to make it work for the above as well
? The goal is to have everything enclosed in the bracket to be extracted.
Thanks.
Match match = Regex.Match(line, @"(?<name>.*)\((?<id>\S+)\)");
It is able to parse the text with the following syntax:
data(Hello)
type(integer)
My regular expression failed when the following is encountered:
data(Hello world)
How do I modify my regular expression to make it work for the above as well
? The goal is to have everything enclosed in the bracket to be extracted.
Thanks.