I have following String
Copy(objid1,objid2)
and i am using following regex for match
objid(?<id>\d{0,3})
however i looking output objid2 and this regex returns objid1.
Is there any change would i do to find my desired output. I thought that i will return all matched sub strings but returns only first one However i need only last matched sub string.
I don't want to use any sub string function as i don't know exact length to find .
Thanks in advance.
Edit:
Please see my try.
Match output = Regex.Match("Copy(objid1,objid2)", @".*(objid(?<id>\d{0,3}))", RegexOptions.Singleline | RegexOptions.IgnoreCase); //objid(?<id>\d{0,3})
if (output.Success)
{
String ProcessString = ((System.Text.RegularExpressions.Capture)(output.Groups[0])).Value;//output.Value;
}