using System;
using System.Collections .Generic ;
using System.IO ;
using System.Linq ;
using System.Text .RegularExpressions ;
public class Test
{
public static void Main( )
{
var s = "Request closed by Jack Arm on 08/16/2018,Assignee #1 James Arye assigned by Scotty Shep on 08/16/2018,Request submitted by Mac Weaver on 08/16/2018,Request created by Mac Weaver on 08/16/2018" ;
var pattern = @"((?:[a-zA-Z'-]+[^a-zA-Z'-]+){0,2})assigned by((?:[^a-zA-Z'-]+[a-zA-Z'-]+){0,2})" ;
var matches = Regex.Matches ( s, pattern) ;
foreach ( Match match in matches)
{
Console.WriteLine ( match.Groups [ 1 ] .Value .Trim ( ) ) ;
Console.WriteLine ( match.Groups [ 2 ] .Value .Trim ( ) ) ;
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLklPOwp1c2luZyBTeXN0ZW0uTGlucTsKdXNpbmcgU3lzdGVtLlRleHQuUmVndWxhckV4cHJlc3Npb25zOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCXZhciBzID0gIlJlcXVlc3QgY2xvc2VkIGJ5IEphY2sgQXJtIG9uIDA4LzE2LzIwMTgsQXNzaWduZWUgIzEgSmFtZXMgQXJ5ZSBhc3NpZ25lZCBieSBTY290dHkgU2hlcCBvbiAwOC8xNi8yMDE4LFJlcXVlc3Qgc3VibWl0dGVkIGJ5IE1hYyBXZWF2ZXIgb24gMDgvMTYvMjAxOCxSZXF1ZXN0IGNyZWF0ZWQgYnkgTWFjIFdlYXZlciBvbiAwOC8xNi8yMDE4IjsKICAgIAl2YXIgcGF0dGVybiA9IEAiKCg/OlthLXpBLVonLV0rW15hLXpBLVonLV0rKXswLDJ9KWFzc2lnbmVkIGJ5KCg/OlteYS16QS1aJy1dK1thLXpBLVonLV0rKXswLDJ9KSI7CiAgICAJdmFyIG1hdGNoZXMgPSBSZWdleC5NYXRjaGVzKHMsIHBhdHRlcm4pOwogICAgICAgIGZvcmVhY2ggKE1hdGNoIG1hdGNoIGluIG1hdGNoZXMpCgkJewogICAgICAgIAlDb25zb2xlLldyaXRlTGluZShtYXRjaC5Hcm91cHNbMV0uVmFsdWUuVHJpbSgpKTsKICAgICAgICAJQ29uc29sZS5Xcml0ZUxpbmUobWF0Y2guR3JvdXBzWzJdLlZhbHVlLlRyaW0oKSk7CgkJfQoJfQp9