Build, test, and debug regular expressions
This regular expression matches strings composed exclusively of the characters 'a', 'b', and 'c' that contain at least one 'a' and at least one 'b' (case-insensitive due to the 'i' flag). It ensures both characters are present by requiring either an 'a' followed eventually by a 'b', or a 'b' followed eventually by an 'a', effectively validating character combinations. It is perfect for logical string validation or format checking where a restricted character set has specific inclusion rules.