Hi all, I looked around for a while, but probably I can't "Google" with the proper keywords, so I'm asking here. I need to extract from a string a set of characters which are included between two delimiters, without returning the delimiters themselves. I'm trying to do it with C# RegEx object.
A simple example should be helpful:
Target: extract the substring between square brackets, without returning the brackets themselves.
Base string: This is a test string [more or less]
If I use the following reg. ex.
\[.*?\]
The match is "[more or less]". I need to get only "more or less", without the brackets. Is it possible to do it? Many thanks.