I have a text file with the values that look like this -
#3#6796#
#8226#16#
#8227#16#
#8256#8033#
#8254#8256#8033#
#8270#8256#8033#
#8272#8256#8033#
#8242#8081#
#8241#8242#8081#
#8243#8242#8081#
#8254#8242#8081#
#8265#8242#8081#
Number can be of any length but typically they are from 1 to 5 digits. I need to find duplicate(s) numbers in one particular string (e.g. not the whole file)
So, for example I need to find strings like -
#8241#8241#8081#
#8243#8242#8243#
#8254#8242#8254#
#8081#8242#8081#
(you can see repeating number in each string above - these are the ones of interest)... I cannot figure out regex for this, so far I was only able to find dup's in whole file but that's not what I need...