There is a question here:
Regex Match.Value returning entire value, not the matched groups
But my question is different
I use
var match = _regex.Match(inputString);
return match.Value;
And I would like to cope without referring to groups by index. Is it possible?
I would like to have a match which does not return
#WORD
from string #WORD "SOMEWORD"
Pattern: ^#WORD(.+)$
Input: #WORD "SOMEWORD"
returns #WORD "SOMEWORD"
I need only "SOMEWORD"