View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
RG III RG III is offline
external usenet poster
 
Posts: 65
Default Regular expression problem

Using only regular expressions, how do you match the
pattern of the same digit that occurs three times in
a string, separated by one character?

Examples:

0a0a0 ' 0 occurs three times separated by "a"
9x9x9 ' 9 occurs three times separated by "x"
1:1:1 ' 9 occurs three times separated by ":"

Robert