I have the following string:
name(name, content(content, content, content), number)
And I need the part bolded out. Is there a way to do this using regex? Essentially I think I need a way of saying:
take all characters until this pattern is hit: , number)
Does it have to be a regex? If not you might make it more readable with substring.
In your case something like:
should work.
(I assume it’s C# because of the tag)