Yes, exactly: it matches any character, captures it, and then matches the same character again. Unfortunately, there is - AFAICT - no way to negate inside the regex itself, even you reach deeply into the bag of tricks (as I tried in solution 15015127).
Group
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
I believe the first regexp checks for no consecutive characters, right?
I do not understand the regexp syntax used there.
Yes, exactly: it matches any character, captures it, and then matches the same character again. Unfortunately, there is - AFAICT - no way to negate inside the regex itself, even you reach deeply into the bag of tricks (as I tried in solution 15015127).