I have the string \"111221\" and want to match all sets of consecutive equal integers: [\"111\", \"22\", \"1\"].
\"111221\"
[\"111\", \"22\", \"1\"]
I know that there is a spe
you can try is
string str ="111221"; string pattern =@"(\d)(\1)+";
Hope can help you