c# - Regex in between characters -
im trying create regex match ascii characters in string converted hex afterwards. string received follows:<<<441234567895,ascii,4,54657379>>>
looking match between third comma , >>>
characters @ end of string so.
<<<441234567895,ascii,4,54657379>>>
so far have managed create regex (/([^,]*,[^,]*)*([^;]*)>>>/)
third comma picked don't want. need remove match?
thanks callum
do need use regex?
string input = "<<<441234567895,ascii,4,54657379>>>"; string match = input.substring(3, input.length - 6).split(',')[3];
you can use further splits on beginning , ending padding strings or check lengths if want safer substring magic.