tags:

views:

194

answers:

1

I need a regular expression that matches three consecutive characters (any alphanumeric character) in a string.

Where 2a82a9e4eee646448db00e3fccabd8c7 "eee" would be a match.

Where 2a82a9e4efe64644448db00e3fccabd8c7 "444" would be a match.

etc.

+7  A: 

Use backreferences.

([a-zA-Z0-9])\1\1
Taylor Leese